Clean up redudant exceptions from handlers (#51741)

This commit is contained in:
Franck Nijhof 2021-06-11 13:29:50 +02:00 committed by GitHub
parent b4aeddd12f
commit f17a5f0db9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 16 additions and 20 deletions

View file

@ -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