Skip to content

Commit

Permalink
Small tweak to raising TimeoutError
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed Nov 29, 2023
1 parent d933a39 commit f921b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quattro/cancelscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def __exit__(
):
self.cancelled_caught = True
if self._raise_on_cancel:
raise TimeoutError()
raise TimeoutError() from None
return True
return None

Expand Down

0 comments on commit f921b8c

Please sign in to comment.