Skip to content

Commit

Permalink
JSONDecodeError fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Jan 9, 2024
1 parent 284b0dd commit 391ccab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -2649,8 +2649,9 @@ def process_torrents(self):
sort="added_on",
reverse=False,
)
except JSONDecodeError:
completed = True
except (qbittorrentapi.exceptions.APIError, JSONDecodeError) as e:
if "JSONDecodeError" in str(e):
completed = True
torrents = [t for t in torrents if hasattr(t, "category")]
if not len(torrents):
raise DelayLoopException(length=5, type="no_downloads")
Expand Down

0 comments on commit 391ccab

Please sign in to comment.