Skip to content

Commit

Permalink
Update python.md
Browse files Browse the repository at this point in the history
  • Loading branch information
blueloveTH committed Jan 19, 2024
1 parent bcf9d75 commit 3523697
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/_posts/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ sum(
```


### Handle exceptions {.col-span-3 .warning}
### Handle exceptions {.col-span-3}
```python
try:
# Use "raise" to raise an error
Expand All @@ -1656,6 +1656,6 @@ except TypeError:
pass # won't catch the IndexError
except IndexError as e:
print("An index error occurred")
# (unsupport) finally:
# print("This will always be called")
finally:
print("This will always be called")
```

0 comments on commit 3523697

Please sign in to comment.