Ask for password again if it fails

This commit is contained in:
Kload 2013-06-15 16:13:45 +02:00
parent 576e2eb7ef
commit 15d38f37a1

View file

@ -290,7 +290,7 @@ class YunoHostLDAP(Singleton):
except KeyboardInterrupt, EOFError:
raise YunoHostError(125, _("Interrupted"))
except ldap.INVALID_CREDENTIALS:
pass
print(_('Invalid password... Try again'))
else:
need_password = False