1.6 dev: Error Handling for -t flag
This commit is contained in:
parent
612fa48d9e
commit
79f13d273e
1 changed files with 4 additions and 3 deletions
|
@ -387,7 +387,7 @@ def main():
|
||||||
log = init_logging(get_version(root), get_active_log(root))
|
log = init_logging(get_version(root), get_active_log(root))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if args.test_token is True:
|
if args.test_token:
|
||||||
log.info("Test flag not currently functioning. Exiting.")
|
log.info("Test flag not currently functioning. Exiting.")
|
||||||
exit(0)
|
exit(0)
|
||||||
arl_checker_instance = LidarrExtendedAPI()
|
arl_checker_instance = LidarrExtendedAPI()
|
||||||
|
@ -408,10 +408,11 @@ def main():
|
||||||
log.error(e)
|
log.error(e)
|
||||||
|
|
||||||
elif args.new_token:
|
elif args.new_token:
|
||||||
if args.new == '':
|
if args.new_token == '':
|
||||||
log.error('Please pass new ARL token as an argument')
|
log.error('Please pass new ARL token as an argument')
|
||||||
exit(96)
|
exit(96)
|
||||||
arl_checker_instance.newARLToken = '"'+args.new+'"'
|
arl_checker_instance.newARLToken = '"'+args.new_token+'"'
|
||||||
|
arl_checker_instance.parse_extended_conf()
|
||||||
arl_checker_instance.set_new_token()
|
arl_checker_instance.set_new_token()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue