summaryrefslogtreecommitdiff
path: root/kvmd/plugins/auth/ldap.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-09-18 04:37:43 +0300
committerMaxim Devaev <[email protected]>2024-09-18 04:37:43 +0300
commit7a53f1445619fc471c2823e7081de8b6039b938e (patch)
tree961dd0072cc976504fe4570743d801c79512e9a6 /kvmd/plugins/auth/ldap.py
parent45270a09d7b5076bac96887a1e36d752882e3adf (diff)
refactoring
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: