Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling cross-actor tracebacks on gevent #75

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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