Skip to content

Commit

Permalink
Merge pull request jupyter-server#444 from afshin/unbound-local-error
Browse files Browse the repository at this point in the history
Fix for UnboundLocalError in shutdown
  • Loading branch information
blink1073 authored Mar 10, 2021
2 parents 16c730b + 12ba0b1 commit 63ee293
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jupyter_server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,7 @@ def wrapped():
if str(e) == 'This event loop is already running':
# just return a Future, hoping that it will be awaited
result = asyncio.ensure_future(maybe_async)
else:
raise e
return result
return wrapped()
return wrapped()

0 comments on commit 63ee293

Please sign in to comment.