This commit is contained in:
bobokun 2023-07-15 15:03:29 -04:00
parent b217bbcdba
commit cbd09b9562
No known key found for this signature in database
GPG key ID: B73932169607D927
2 changed files with 4 additions and 10 deletions

View file

@ -1 +1 @@
4.0.3-develop2 4.0.3-develop3

View file

@ -2,7 +2,6 @@
import os import os
import sys import sys
from qbittorrentapi import APIConnectionError
from qbittorrentapi import Client from qbittorrentapi import Client
from qbittorrentapi import LoginFailed from qbittorrentapi import LoginFailed
from qbittorrentapi import NotFound404Error from qbittorrentapi import NotFound404Error
@ -74,15 +73,10 @@ class Qbt:
except LoginFailed as exc: except LoginFailed as exc:
ex = "Qbittorrent Error: Failed to login. Invalid username/password." ex = "Qbittorrent Error: Failed to login. Invalid username/password."
self.config.notify(ex, "Qbittorrent") self.config.notify(ex, "Qbittorrent")
raise Failed(ex) from exc raise Failed(exc) 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
except Exception as exc: except Exception as exc:
ex = "Qbittorrent Error: Unable to connect to the client." self.config.notify(exc, "Qbittorrent")
self.config.notify(ex, "Qbittorrent") raise Failed(exc) from exc
raise Failed(ex) from exc
logger.separator("Getting Torrent List", space=False, border=False) logger.separator("Getting Torrent List", space=False, border=False)
self.torrent_list = self.get_torrents({"sort": "added_on"}) self.torrent_list = self.get_torrents({"sort": "added_on"})