Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions winremote/winremote.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@ def is_connective(self):
return not self._session.run_cmd('echo').status_code
except (
winrm.exceptions.WinRMTransportError,
winrm.exceptions.TimeoutError
winrm.exceptions.WinRMOperationTimeoutError
) as e:
self.logger.warn("WinRM is not connective: %s", e)
return False
except (
winrm.exceptions.WinRMWebServiceError,
winrm.exceptions.WinRMAuthorizationError,
winrm.exceptions.WinRMWSManFault,
winrm.exceptions.UnauthorizedError
winrm.exceptions.WinRMError,
winrm.exceptions.AuthenticationError
) as e:
raise WinRMException(e)

Expand Down