diff options
author | Matan Perelman <matan1008@gmail.com> | 2024-01-29 19:12:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-29 19:12:33 (GMT) |
commit | 29952c86f3f8a972203a1ccd8381448efe145ada (patch) | |
tree | 7bf7f2932a9e66f67346178886cb6cb20589b0be /Lib/asyncio/taskgroups.py | |
parent | aa3402ad451777d8dd3ec560e14cb16dc8540c0e (diff) | |
download | cpython-29952c86f3f8a972203a1ccd8381448efe145ada.zip cpython-29952c86f3f8a972203a1ccd8381448efe145ada.tar.gz cpython-29952c86f3f8a972203a1ccd8381448efe145ada.tar.bz2 |
TaskGroup: Use explicit None check for cancellation error (#114708)
Diffstat (limited to 'Lib/asyncio/taskgroups.py')
-rw-r--r-- | Lib/asyncio/taskgroups.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/taskgroups.py b/Lib/asyncio/taskgroups.py index e1c56d1..f322b1f 100644 --- a/Lib/asyncio/taskgroups.py +++ b/Lib/asyncio/taskgroups.py @@ -132,7 +132,7 @@ class TaskGroup: # Propagate CancelledError if there is one, except if there # are other errors -- those have priority. - if propagate_cancellation_error and not self._errors: + if propagate_cancellation_error is not None and not self._errors: raise propagate_cancellation_error if et is not None and not issubclass(et, exceptions.CancelledError): |