Skip to content

Commit 0cbd63a

Browse files
committed
try to fix test
1 parent 5f87918 commit 0cbd63a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nxc/protocols/ldap.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ def create_conn_obj(self):
205205
except Exception as e:
206206
self.logger.debug("Exception:", exc_info=True)
207207
self.logger.info(f"Skipping item, cannot process due to error {e}")
208+
except ConnectionRefusedError as e:
209+
self.logger.debug(f"{e} on host {self.host}")
210+
return False
208211
except OSError as e:
209212
self.logger.error(f"Error getting ldap info {e}")
210213

0 commit comments

Comments
 (0)