Fix qBittorrent crash after caught exception (#35355)

This commit is contained in:
Jesse Hills
2020-05-09 00:56:22 +12:00
committed by GitHub
parent ddd6b9cff1
commit d03d90a955

View File

@@ -113,6 +113,7 @@ class QBittorrentSensor(Entity):
except RequestException:
_LOGGER.error("Connection lost")
self._available = False
return
except self._exception:
_LOGGER.error("Invalid authentication")
return