mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-11 12:03:00 +00:00
Log the exception raised in Spawner.post_stop_hook instead of raising it
This commit is contained in:
@@ -826,10 +826,7 @@ class User:
|
||||
try:
|
||||
await maybe_future(spawner.run_post_stop_hook())
|
||||
except:
|
||||
spawner.clear_state()
|
||||
spawner.orm_spawner.state = spawner.get_state()
|
||||
self.db.commit()
|
||||
raise
|
||||
self.log.exception("Error in Spawner.post_stop_hook for %s", self)
|
||||
spawner.clear_state()
|
||||
spawner.orm_spawner.state = spawner.get_state()
|
||||
self.db.commit()
|
||||
|
Reference in New Issue
Block a user