Catch token not set.
This commit is contained in:
parent
8ce532e9f0
commit
d8976c4682
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue