mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-27 03:08:59 +02:00
handle oserror and pipebroken during connection
This commit is contained in:
parent
6db0079c0c
commit
1b014c94b5
1 changed files with 3 additions and 1 deletions
|
@ -76,7 +76,9 @@ class MikrotikAPI:
|
|||
librouteros_custom.exceptions.ConnectionClosed,
|
||||
librouteros_custom.exceptions.ProtocolError,
|
||||
librouteros_custom.exceptions.FatalError,
|
||||
ssl.SSLError
|
||||
ssl.SSLError,
|
||||
BrokenPipeError,
|
||||
OSError
|
||||
) as api_error:
|
||||
_LOGGER.error("Mikrotik %s: %s", self._host, api_error)
|
||||
self.error_to_strings("%s" % api_error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue