Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Apr 5, 2021
1 parent 64faafc commit 1292ea0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/sonarr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging, requests
from json.decoder import JSONDecodeError
from modules import util
from modules.util import Failed
from retrying import retry
Expand Down Expand Up @@ -144,6 +145,10 @@ def add_tvdb(self, tvdb_ids, **options):
except KeyError:
logger.debug(url_json)
logger.error(f"Sonarr Error: {response.json()}")
except JSONDecodeError:
logger.debug(url_json)
logger.error(f"Sonarr Error: {response}")

logger.info(f"{add_count} Show{'s' if add_count > 1 else ''} added to Sonarr")

@retry(stop_max_attempt_number=6, wait_fixed=10000)
Expand Down

0 comments on commit 1292ea0

Please sign in to comment.