Skip to content

Commit

Permalink
Remove potentially unused exception name.
Browse files Browse the repository at this point in the history
  • Loading branch information
apaz-cli committed Nov 21, 2024
1 parent 4c7d7be commit 69221b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions thunder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,9 +849,8 @@ def internal_to_thunder(co):
# Re-raise the exception without retaining it in this stack frame to avoid leaking tensors.
try:
raise exc
except Exception as e:
except Exception:
del exc
del e
raise # re-raises current exception

return _thunder_unwrap_inner_exception
Expand Down

0 comments on commit 69221b7

Please sign in to comment.