Skip to content

Commit

Permalink
Merge pull request #3 from mguijarr/master
Browse files Browse the repository at this point in the history
in wrap_greenlet: the result of the greenlet may be a BaseException
  • Loading branch information
2mf authored Sep 16, 2021
2 parents adc2d82 + d9e4a2b commit 2fbc21e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiogevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def wrap_greenlet(gt, loop=None):
def wrap_func(*args, **kw):
try:
result = orig_func(*args, **kw)
except Exception as exc:
except BaseException as exc:
fut.set_exception(exc)
else:
fut.set_result(result)
Expand All @@ -283,7 +283,7 @@ def wrap_func(*args, **kw):
def wrap_func(*args, **kw):
try:
result = orig_func(*args, **kw)
except Exception as exc:
except BaseException as exc:
fut.set_exception(exc)
else:
fut.set_result(result)
Expand Down

0 comments on commit 2fbc21e

Please sign in to comment.