mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-04 00:14:45 +01:00
Make older python versions work
This commit is contained in:
parent
0d160fc81d
commit
74ebaff4e3
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ def void_task_done_callback(method_name, _VoidPromiseFulfiller fulfiller, task):
|
|||
|
||||
exc = task.exception()
|
||||
if exc is not None:
|
||||
fulfiller.fulfiller.reject(makeException(capnp.StringPtr(''.join(_traceback.format_exception(exc)))))
|
||||
fulfiller.fulfiller.reject(makeException(capnp.StringPtr(''.join(
|
||||
_traceback.format_exception(type(exc), exc, exc.__traceback__)))))
|
||||
return
|
||||
|
||||
res = task.result()
|
||||
|
|
Loading…
Add table
Reference in a new issue