Skip to content

Commit 63ee293

Browse files
authored
Merge pull request jupyter-server#444 from afshin/unbound-local-error
Fix for UnboundLocalError in shutdown
2 parents 16c730b + 12ba0b1 commit 63ee293

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)