From d90709bd97ec9dd948dd4653605f143d9dd5233e Mon Sep 17 00:00:00 2001 From: mpgn Date: Sat, 18 Dec 2021 15:33:46 -0500 Subject: [PATCH] Fix exception --- cme/protocols/smb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cme/protocols/smb.py b/cme/protocols/smb.py index 9c9ecd46..d52e7170 100755 --- a/cme/protocols/smb.py +++ b/cme/protocols/smb.py @@ -373,7 +373,7 @@ class smb(connection): pass self.create_conn_obj() - except (SessionError, NetBIOSTimeout) as e: + except (SessionError) as e: error, desc = e.getErrorString() self.logger.error(u'{}\\{}:{} {} {}'.format(domain, self.username, @@ -433,7 +433,7 @@ class smb(connection): except: pass self.create_conn_obj() - except (SessionError, NetBIOSTimeout) as e: + except (SessionError) as e: error, desc = e.getErrorString() self.logger.error(u'{}\\{}:{} {} {}'.format(domain, self.username,