Skip to content

Commit

Permalink
resume the finally block
Browse files Browse the repository at this point in the history
  • Loading branch information
zitongzhan committed Aug 5, 2023
1 parent 21c33e0 commit 87045d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pypose/lietensor/lietensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1248,4 +1248,7 @@ def wrapper(*args, **kwargs):
setattr(module, name, wrap_function(func))
yield
finally:
pass
for func in TO_BE_WRAPPED:
module, name = func.__module__, func.__name__
module = importlib.import_module(module)
setattr(module, name, func)

0 comments on commit 87045d4

Please sign in to comment.