forked from p15670423/monkey
Agent: Log exception information on dcom.disconnect() key error
This commit is contained in:
parent
d9ee377945
commit
dd2168e838
|
@ -67,8 +67,7 @@ class WmiTools(object):
|
|||
try:
|
||||
dcom.disconnect()
|
||||
except KeyError:
|
||||
# No connection to disconnect
|
||||
pass
|
||||
logger.exception("Disconnecting the DCOMConnection failed")
|
||||
|
||||
if "rpc_s_access_denied" == exc.error_string:
|
||||
raise AccessDeniedException(host, username, password, domain)
|
||||
|
|
Loading…
Reference in New Issue