summaryrefslogtreecommitdiff
path: root/kvmd/plugins/auth/ldap.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/auth/ldap.py')
-rw-r--r--kvmd/plugins/auth/ldap.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/kvmd/plugins/auth/ldap.py b/kvmd/plugins/auth/ldap.py
index fa6b9fff..961a47c7 100644
--- a/kvmd/plugins/auth/ldap.py
+++ b/kvmd/plugins/auth/ldap.py
@@ -100,10 +100,10 @@ class Plugin(BaseAuthService):
return True
except ldap.INVALID_CREDENTIALS:
pass
- except ldap.SERVER_DOWN as err:
- get_logger().error("LDAP server is down: %s", tools.efmt(err))
- except Exception as err:
- get_logger().error("Unexpected LDAP error: %s", tools.efmt(err))
+ except ldap.SERVER_DOWN as ex:
+ get_logger().error("LDAP server is down: %s", tools.efmt(ex))
+ except Exception as ex:
+ get_logger().error("Unexpected LDAP error: %s", tools.efmt(ex))
finally:
if conn is not None:
try: