[sagenb] 49/157: Error when a non-existent (non-void) user is given at login
felix salfelder
felix-guest at moszumanska.debian.org
Mon Dec 22 16:51:48 UTC 2014
This is an automated email from the git hooks/post-receive script.
felix-guest pushed a commit to branch master
in repository sagenb.
commit 8662cc527a460b4184dfaf05ed8443707e19342e
Author: J. Miguel Farto <migeruhito at gmail.com>
Date: Tue Sep 16 15:59:25 2014 +0200
Error when a non-existent (non-void) user is given at login
---
sagenb/flask_version/authentication.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sagenb/flask_version/authentication.py b/sagenb/flask_version/authentication.py
index 76885c0..d2c0f72 100644
--- a/sagenb/flask_version/authentication.py
+++ b/sagenb/flask_version/authentication.py
@@ -40,7 +40,7 @@ def login(template_dict={}):
if is_valid_username(username):
try:
U = g.notebook.user_manager().user(username)
- except KeyError:
+ except (KeyError, LookupError):
U = None
template_dict['username_error'] = True
else:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git
More information about the debian-science-commits
mailing list