Skip to content

Commit

Permalink
Enabling cross-actor tracebacks
Browse files Browse the repository at this point in the history
  • Loading branch information
arnuschky committed Aug 24, 2017
1 parent d66b0c4 commit 5e6ac55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pykka/actor.py
Expand Up @@ -206,7 +206,7 @@ def _actor_loop(self):
logger.debug(
'Exception returned from %s to caller:' % self,
exc_info=sys.exc_info())
reply_to.set_exception()
reply_to.set_exception(sys.exc_info())
else:
self._handle_failure(*sys.exc_info())
try:
Expand Down
3 changes: 2 additions & 1 deletion pykka/gevent.py
Expand Up @@ -55,10 +55,11 @@ def set(self, value=None):
def set_exception(self, exc_info=None):
if isinstance(exc_info, BaseException):
exception = exc_info
exc_info = None
else:
exc_info = exc_info or sys.exc_info()
exception = exc_info[1]
self.async_result.set_exception(exception)
self.async_result.set_exception(exception, exc_info=exc_info)


class GeventActor(Actor):
Expand Down

0 comments on commit 5e6ac55

Please sign in to comment.