diff --git a/VERSION b/VERSION index 234aa61..1cb97d4 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0.3-develop2 +4.0.3-develop3 diff --git a/modules/qbittorrent.py b/modules/qbittorrent.py index a1c223c..d467a38 100755 --- a/modules/qbittorrent.py +++ b/modules/qbittorrent.py @@ -2,7 +2,6 @@ import os import sys -from qbittorrentapi import APIConnectionError from qbittorrentapi import Client from qbittorrentapi import LoginFailed from qbittorrentapi import NotFound404Error @@ -74,15 +73,10 @@ class Qbt: except LoginFailed as exc: ex = "Qbittorrent Error: Failed to login. Invalid username/password." self.config.notify(ex, "Qbittorrent") - raise Failed(ex) from exc - except APIConnectionError as exc: - ex = "Qbittorrent Error: Unable to connect to the client." - self.config.notify(ex, "Qbittorrent") - raise Failed(ex) from exc + raise Failed(exc) from exc except Exception as exc: - ex = "Qbittorrent Error: Unable to connect to the client." - self.config.notify(ex, "Qbittorrent") - raise Failed(ex) from exc + self.config.notify(exc, "Qbittorrent") + raise Failed(exc) from exc logger.separator("Getting Torrent List", space=False, border=False) self.torrent_list = self.get_torrents({"sort": "added_on"})