From 0cbd63aa2584d2bfae7ef8f5332322cb142a7ba3 Mon Sep 17 00:00:00 2001 From: mpgn <5891788+mpgn@users.noreply.github.com> Date: Mon, 6 Jan 2025 09:24:49 +0100 Subject: [PATCH] try to fix test --- nxc/protocols/ldap.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nxc/protocols/ldap.py b/nxc/protocols/ldap.py index 4c521554..908a6971 100644 --- a/nxc/protocols/ldap.py +++ b/nxc/protocols/ldap.py @@ -205,6 +205,9 @@ class ldap(connection): except Exception as e: self.logger.debug("Exception:", exc_info=True) self.logger.info(f"Skipping item, cannot process due to error {e}") + except ConnectionRefusedError as e: + self.logger.debug(f"{e} on host {self.host}") + return False except OSError as e: self.logger.error(f"Error getting ldap info {e}")