Catch token not set.

This commit is contained in:
hockeygoalie35 2024-02-06 23:31:14 -05:00
parent 8ce532e9f0
commit d8976c4682

View file

@ -197,6 +197,9 @@ class LidarrExtendedAPI:
# Uses DeezerPlatformProvider to check if the token is valid
def check_token(self, token=None):
logger.info('Checking ARL Token Validity...')
if token == '""':
logger.info(Fore.YELLOW+"No ARL Token set in Extended.conf"+Fore.WHITE)
exit(0)
if token is None:
print('Invalid ARL Token Entry')
return False