mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 20:43:02 +00:00
don't ask for exception is Future is not done
This commit is contained in:
@@ -555,7 +555,10 @@ class User:
|
|||||||
except Exception:
|
except Exception:
|
||||||
self.log.exception("Error in Authenticator.post_spawn_stop for %s", self)
|
self.log.exception("Error in Authenticator.post_spawn_stop for %s", self)
|
||||||
spawner._stop_pending = False
|
spawner._stop_pending = False
|
||||||
if not (spawner._spawn_future and spawner._spawn_future.exception()):
|
if not (
|
||||||
|
spawner._spawn_future and
|
||||||
|
(not spawner._spawn_future.done() or spawner._spawn_future.exception())
|
||||||
|
):
|
||||||
# pop Spawner *unless* it's stopping due to an error
|
# pop Spawner *unless* it's stopping due to an error
|
||||||
# because some pages serve latest-spawn error messages
|
# because some pages serve latest-spawn error messages
|
||||||
self.spawners.pop(server_name)
|
self.spawners.pop(server_name)
|
||||||
|
Reference in New Issue
Block a user