From f42f7dd01f02cbcf80653f2e3da0855852b68c23 Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 2 Mar 2021 14:32:33 +0100 Subject: [PATCH] raise on failed token creation the logic was there but at the wrong indentation level causing it to only raise sometimes --- jupyterhub/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterhub/app.py b/jupyterhub/app.py index d5d35d5a..b439a98a 100644 --- a/jupyterhub/app.py +++ b/jupyterhub/app.py @@ -1876,7 +1876,7 @@ class JupyterHub(Application): # don't allow bad tokens to create users db.delete(obj) db.commit() - raise + raise else: self.log.debug("Not duplicating token %s", orm_token) db.commit()