mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
raise on failed token creation
the logic was there but at the wrong indentation level causing it to only raise sometimes
This commit is contained in:
@@ -1876,7 +1876,7 @@ class JupyterHub(Application):
|
|||||||
# don't allow bad tokens to create users
|
# don't allow bad tokens to create users
|
||||||
db.delete(obj)
|
db.delete(obj)
|
||||||
db.commit()
|
db.commit()
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
self.log.debug("Not duplicating token %s", orm_token)
|
self.log.debug("Not duplicating token %s", orm_token)
|
||||||
db.commit()
|
db.commit()
|
||||||
|
Reference in New Issue
Block a user