Skip to content

Commit cc1ac3b

Browse files
author
Anton
committedMay 22, 2023
fix: python 3.7
1 parent a786589 commit cc1ac3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎taskiq/semaphore.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async def acquire(self, first: bool = False) -> Literal[True]: # noqa: C901
5252
Acquire a semaphore.
5353
5454
:param first: acquire ASAP
55-
:raises asyncio.exceptions.CancelledError: task cancelled
55+
:raises asyncio.CancelledError: task cancelled
5656
:returns: true
5757
"""
5858
if not self.locked():
@@ -78,7 +78,7 @@ async def acquire(self, first: bool = False) -> Literal[True]: # noqa: C901
7878
else:
7979
self._waiters.remove(fut)
8080

81-
except asyncio.exceptions.CancelledError:
81+
except asyncio.CancelledError:
8282
if not fut.cancelled():
8383
self._value += 1
8484
self._wakeup_next()

0 commit comments

Comments
 (0)
Failed to load comments.