diff --git a/monkey/infection_monkey/exploit/tools/wmi_tools.py b/monkey/infection_monkey/exploit/tools/wmi_tools.py index 682dfee60..5b21d2d9f 100644 --- a/monkey/infection_monkey/exploit/tools/wmi_tools.py +++ b/monkey/infection_monkey/exploit/tools/wmi_tools.py @@ -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)