From 44dbd1d36c4c6ff9cbca71f9c4708ac8e6f9a485 Mon Sep 17 00:00:00 2001 From: Ralf Ramsauer Date: Mon, 17 Sep 2018 21:57:23 +0200 Subject: [PATCH] dss.py: fix python3 ldap exception handling Signed-off-by: Ralf Ramsauer --- dss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dss.py b/dss.py index 276b65a..4ec7343 100755 --- a/dss.py +++ b/dss.py @@ -184,7 +184,7 @@ def login(): try: l.simple_bind_s(user, pswd) except ldap.INVALID_CREDENTIALS as e: - form.pswd.errors.append(e.message['desc']) + form.pswd.errors.append('Invalid Credentials') l.unbind_s() return render_template('login.html', form=form, nav=buildNav()) l.unbind_s()