Make older python versions work

This commit is contained in:
Lasse Blaauwbroek 2023-06-09 22:05:05 +02:00
parent 0d160fc81d
commit 74ebaff4e3

View file

@ -80,7 +80,8 @@ def void_task_done_callback(method_name, _VoidPromiseFulfiller fulfiller, task):
exc = task.exception() exc = task.exception()
if exc is not None: 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 return
res = task.result() res = task.result()