mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-25 22:10:22 +00:00
catch Arr NotFounds
This commit is contained in:
parent
8f6960e811
commit
4e54942069
2 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue