Skip to content

Commit

Permalink
[Fix] Replace finally statement by except BaseException to suppress all
Browse files Browse the repository at this point in the history
exceptions

Co-authored-by:  Irit Katriel <[email protected]>
  • Loading branch information
fjosw and iritkatriel committed Nov 3, 2024
1 parent 1895521 commit 7425126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autograd/wrap_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _wraps(f):
try:
f.__name__ = namestr.format(fun=get_name(fun), **kwargs)
f.__doc__ = docstr.format(fun=get_name(fun), doc=get_doc(fun), **kwargs)
finally:
except BaseException:
return f

return _wraps
Expand Down

0 comments on commit 7425126

Please sign in to comment.