Skip to content

Commit

Permalink
[patch] Quality profile change error handling when defined incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Dec 5, 2024
1 parent 9e32ae8 commit bc26662
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -2349,18 +2349,19 @@ def db_update_single_series(
self.logger.warning(
"Check quality profile settings for %s", db_entry["title"]
)
while True:
try:
self.api_call_count += 1
self.client.upd_episode(episode["id"], data)
break
except (
requests.exceptions.ChunkedEncodingError,
requests.exceptions.ContentDecodingError,
requests.exceptions.ConnectionError,
JSONDecodeError,
):
continue
if data:
while True:
try:
self.api_call_count += 1
self.client.upd_episode(episode["id"], data)
break
except (
requests.exceptions.ChunkedEncodingError,
requests.exceptions.ContentDecodingError,
requests.exceptions.ConnectionError,
JSONDecodeError,
):
continue

EntryId = episode["id"]
SeriesTitle = episode.get("series", {}).get("title")
Expand Down

0 comments on commit bc26662

Please sign in to comment.