Skip to content

Commit 1b7d11d

Browse files
authored
Merge pull request #444 from afshin/unbound-local-error
Fix for UnboundLocalError in shutdown
2 parents 4e75efd + 3e41a36 commit 1b7d11d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyter_server/utils.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -224,5 +224,7 @@ def wrapped():
224224
if str(e) == 'This event loop is already running':
225225
# just return a Future, hoping that it will be awaited
226226
result = asyncio.ensure_future(maybe_async)
227+
else:
228+
raise e
227229
return result
228-
return wrapped()
230+
return wrapped()

0 commit comments

Comments
 (0)