Skip to content

Commit

Permalink
Merge pull request #250 from davidhozic/develop
Browse files Browse the repository at this point in the history
Undefined variable fix
  • Loading branch information
davidhozic authored Dec 31, 2022
2 parents 88f4d6f + 17ca294 commit 3578813
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 3578813

Please sign in to comment.