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:
|
try:
|
||||||
dcom.disconnect()
|
dcom.disconnect()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
# No connection to disconnect
|
logger.exception("Disconnecting the DCOMConnection failed")
|
||||||
pass
|
|
||||||
|
|
||||||
if "rpc_s_access_denied" == exc.error_string:
|
if "rpc_s_access_denied" == exc.error_string:
|
||||||
raise AccessDeniedException(host, username, password, domain)
|
raise AccessDeniedException(host, username, password, domain)
|
||||||
|
|
Loading…
Reference in New Issue