Fix exception

main
mpgn 2021-12-18 15:33:46 -05:00
parent c259a42c6c
commit d90709bd97
1 changed files with 2 additions and 2 deletions

View File

@ -373,7 +373,7 @@ class smb(connection):
pass pass
self.create_conn_obj() self.create_conn_obj()
except (SessionError, NetBIOSTimeout) as e: except (SessionError) as e:
error, desc = e.getErrorString() error, desc = e.getErrorString()
self.logger.error(u'{}\\{}:{} {} {}'.format(domain, self.logger.error(u'{}\\{}:{} {} {}'.format(domain,
self.username, self.username,
@ -433,7 +433,7 @@ class smb(connection):
except: except:
pass pass
self.create_conn_obj() self.create_conn_obj()
except (SessionError, NetBIOSTimeout) as e: except (SessionError) as e:
error, desc = e.getErrorString() error, desc = e.getErrorString()
self.logger.error(u'{}\\{}:{} {} {}'.format(domain, self.logger.error(u'{}\\{}:{} {} {}'.format(domain,
self.username, self.username,