diff --git a/jupyterhub/app.py b/jupyterhub/app.py index 5f7a59d5..f4f7440d 100644 --- a/jupyterhub/app.py +++ b/jupyterhub/app.py @@ -1943,6 +1943,7 @@ class JupyterHub(Application): db.commit() self.log.info("Adding API token for %s: %s", kind, name) # If we have roles in the configuration file, they will be added later + # Todo: works but ugly config_roles = None for config_role in self.load_roles: if 'tokens' in config_role and token in config_role['tokens']: