Skip to content

Commit

Permalink
fix: attribute error on python 3.8 and 3.9 (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 12, 2024
1 parent d2f8bef commit e924e46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions a_sync/_smart.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ cdef object _get_result(fut: asyncio.Future):
cdef str state = fut._state
if state == "FINISHED":
fut._Future__log_traceback = False
if fut._exception is not None:
raise fut._exception.with_traceback(fut._exception_tb)
exc = fut._exception
if exc is not None:
raise exc.with_traceback(exc.__traceback__)
return fut._result
if state == "CANCELLED":
raise fut._make_cancelled_error()
Expand Down

0 comments on commit e924e46

Please sign in to comment.