Skip to content

Commit

Permalink
Update feed
Browse files Browse the repository at this point in the history
  • Loading branch information
rednafi committed Nov 10, 2024
1 parent d4ecfba commit 679702a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions content/feed/2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ The `return` statement in the `finally` block can suppress exceptions implicitly
example:

```python
>>> def foo():
... try:
... 1/0
... except Exception:
... raise
... finally:
... return 0
def foo() -> int:
try:
1 / 0
except Exception:
raise
finally:
return 0
```

Running this function will suppress the exception and return 0. While this might seem
Expand Down

0 comments on commit 679702a

Please sign in to comment.