catch Arr NotFounds

This commit is contained in:
meisnate12 2021-12-29 14:52:19 -05:00
parent 8f6960e811
commit 4e54942069
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ import logging
from modules import util
from modules.util import Failed
from arrapi import RadarrAPI
from arrapi.exceptions import ArrException, Invalid
from arrapi.exceptions import ArrException, Invalid, NotFound
logger = logging.getLogger("Plex Meta Manager")
@ -107,7 +107,7 @@ class Radarr:
exists.extend(_e)
invalid.extend(_i)
movies = []
except Invalid as e:
except (Invalid, NotFound) as e:
raise Failed(f"Radarr Error: {e}")
if len(added) > 0:

View file

@ -2,7 +2,7 @@ import logging
from modules import util
from modules.util import Failed
from arrapi import SonarrAPI
from arrapi.exceptions import ArrException, Invalid
from arrapi.exceptions import ArrException, Invalid, NotFound
logger = logging.getLogger("Plex Meta Manager")
@ -133,7 +133,7 @@ class Sonarr:
exists.extend(_e)
invalid.extend(_i)
shows = []
except Invalid as e:
except (Invalid, NotFound) as e:
raise Failed(f"Sonarr Error: {e}")
if len(added) > 0: