Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
[patch] apply "fix" in all relevant locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Drapersniper committed Feb 1, 2022
1 parent 7a38515 commit bb8d891
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit bb8d891

Please sign in to comment.