Closed willirath closed 5 years ago
Currently, it is assumed that all users that are deleted are present in the dbm file:
https://github.com/jupyterhub/firstuseauthenticator/blob/master/firstuseauthenticator/firstuseauthenticator.py#L127
To also cover cases where users are deleted before they have logged in (and hence created an entry in the dbm file), I propose catching KeyErrors in delete_user.
KeyError
delete_user
Related: https://github.com/jupyterhub/the-littlest-jupyterhub/issues/231
Currently, it is assumed that all users that are deleted are present in the dbm file:
https://github.com/jupyterhub/firstuseauthenticator/blob/master/firstuseauthenticator/firstuseauthenticator.py#L127
To also cover cases where users are deleted before they have logged in (and hence created an entry in the dbm file), I propose catching
KeyError
s indelete_user
.