Skip to content

Commit 3578813

Browse files
authored
Merge pull request #250 from davidhozic/develop
Undefined variable fix
2 parents 88f4d6f + 17ca294 commit 3578813

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/daf/misc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ def __safe_access(coroutine: Union[Coroutine, Callable]) -> Coroutine:
128128
async def sub_wrapper(sem: Semaphore, *args, **kwargs):
129129
for i in range(amount):
130130
await sem.acquire()
131+
132+
result = None
131133
try:
132134
result = await coroutine(*args, **kwargs)
133135
finally:

0 commit comments

Comments
 (0)