Skip to content

Commit 693da71

Browse files
committed
Stop NetBiosTimeout and error producing large stack traces
1 parent 548b6d0 commit 693da71

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

nxc/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ def __init__(self, args, db, target):
167167
except Exception as e:
168168
if "ERROR_DEPENDENT_SERVICES_RUNNING" in str(e):
169169
self.logger.error(f"Exception while calling proto_flow() on target {target}: {e}")
170+
elif e.__class__.__name__ in ["NetBIOSTimeout", "NetBIOSError"]:
171+
self.logger.error(f"{e.__class__.__name__} on target {target}: {e}")
170172
else:
171173
self.logger.exception(f"Exception while calling proto_flow() on target {target}: {e}")
172174
finally:

0 commit comments

Comments
 (0)