From bcdba1cfa8ae2a70bb7f71fd1eeab9820ef2d906 Mon Sep 17 00:00:00 2001 From: bobokun Date: Thu, 15 Feb 2024 10:48:54 -0500 Subject: [PATCH] Fixes #488 --- VERSION | 2 +- modules/qbittorrent.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 171afb3..1f47379 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0.9-develop9 +4.0.9-develop10 diff --git a/modules/qbittorrent.py b/modules/qbittorrent.py index 204ce07..8806db3 100755 --- a/modules/qbittorrent.py +++ b/modules/qbittorrent.py @@ -71,13 +71,13 @@ class Qbt: logger.print_line(ex, "CRITICAL") sys.exit(1) logger.info("Qbt Connection Successful") - except LoginFailed as exc: + except LoginFailed: ex = "Qbittorrent Error: Failed to login. Invalid username/password." self.config.notify(ex, "Qbittorrent") - raise Failed(exc) from exc + raise Failed(ex) except Exception as exc: self.config.notify(exc, "Qbittorrent") - raise Failed(exc) from exc + raise Failed(exc) logger.separator("Getting Torrent List", space=False, border=False) self.torrent_list = self.get_torrents({"sort": "added_on"})