Fix exception
parent
c259a42c6c
commit
d90709bd97
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue