Clean up redudant exceptions from handlers (#51741)
This commit is contained in:
parent
b4aeddd12f
commit
f17a5f0db9
13 changed files with 16 additions and 20 deletions
|
@ -122,7 +122,7 @@ class RTorrentSensor(SensorEntity):
|
|||
try:
|
||||
self.data = multicall()
|
||||
self._available = True
|
||||
except (xmlrpc.client.ProtocolError, ConnectionRefusedError, OSError) as ex:
|
||||
except (xmlrpc.client.ProtocolError, OSError) as ex:
|
||||
_LOGGER.error("Connection to rtorrent failed (%s)", ex)
|
||||
self._available = False
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue