[141] catch bad tokens

pull/1345/head
meisnate12 2 years ago
parent 89eba94712
commit 433e9de0d5

@ -1 +1 @@
1.18.3-develop140 1.18.3-develop141

@ -361,7 +361,7 @@ class Overlays:
except Exception as e: except Exception as e:
logger.info(e) logger.info(e)
logger.info(type(e)) logger.info(type(e))
logger.stacktrace(e) logger.stacktrace()
logger.error("") logger.error("")
logger.error(f"Overlays Attempted on {item_title}: {', '.join(over_names)}") logger.error(f"Overlays Attempted on {item_title}: {', '.join(over_names)}")
logger.exorcise() logger.exorcise()

@ -457,7 +457,9 @@ class Plex(Library):
if not self.Plex: if not self.Plex:
raise Failed(f"Plex Error: Plex Library '{params['name']}' not found. Options: {library_names}") raise Failed(f"Plex Error: Plex Library '{params['name']}' not found. Options: {library_names}")
if self.Plex.type not in library_types: if self.Plex.type not in library_types:
raise Failed(f"Plex Error: Plex Library must be a Movies or TV Shows library") raise Failed(f"Plex Error: Plex Library must be a Movies, TV Shows, or Music library")
if not self.Plex.allowSync:
raise Failed("Plex Error: Plex Token is read only. Please get a new token")
self.type = self.Plex.type.capitalize() self.type = self.Plex.type.capitalize()
self.plex_pass = self.PlexServer.myPlexSubscription self.plex_pass = self.PlexServer.myPlexSubscription

Loading…
Cancel
Save