Skip to content

Commit

Permalink
Undefined variable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhozic committed Dec 30, 2022
1 parent 88f4d6f commit 17ca294
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/daf/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def __safe_access(coroutine: Union[Coroutine, Callable]) -> Coroutine:
async def sub_wrapper(sem: Semaphore, *args, **kwargs):
for i in range(amount):
await sem.acquire()

result = None
try:
result = await coroutine(*args, **kwargs)
finally:
Expand Down

0 comments on commit 17ca294

Please sign in to comment.