From bb8d8919e3b89ab09a130e43a6776c59dfca93ef Mon Sep 17 00:00:00 2001 From: draper <27962761+Drapersniper@users.noreply.github.com> Date: Tue, 1 Feb 2022 13:10:20 +0000 Subject: [PATCH] [patch] apply "fix" in all relevant locations --- qBitrr/arss.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 33897a6c..6cb71ce1 100644 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -1812,6 +1812,7 @@ def process_torrents(self): torrents = self.manager.qbit_manager.client.torrents.info.all( category=self.category, sort="added_on", reverse=False ) + torrents = [t for t in torrents if hasattr(t, "category")] if not len(torrents): raise DelayLoopException(length=5, type="no_downloads") if has_internet() is False: @@ -3256,6 +3257,9 @@ def process_torrents(self): self.process() except NoConnectionrException as e: self.logger.error(e.message) + except qbittorrentapi.exceptions.APIError as e: + self.logger.error("The qBittorrent API returned an unexpected error") + self.logger.debug("Unexpected APIError from qBitTorrent", exc_info=e) except DelayLoopException: raise except qbittorrentapi.exceptions.APIConnectionError as e: