From d03d90a95503c9d5496e874d5061013711969de9 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Sat, 9 May 2020 00:56:22 +1200 Subject: [PATCH] Fix qBittorrent crash after caught exception (#35355) --- homeassistant/components/qbittorrent/sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/qbittorrent/sensor.py b/homeassistant/components/qbittorrent/sensor.py index 46f82e99a62..4bf982bbbce 100644 --- a/homeassistant/components/qbittorrent/sensor.py +++ b/homeassistant/components/qbittorrent/sensor.py @@ -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