Fix crash if no arguments are passed to cli

This commit is contained in:
Shane Kerr 2021-11-20 11:07:39 +01:00
parent 95302d81e5
commit 6a9773734a

View File

@ -15,7 +15,7 @@ logging.getLogger('urllib3.connectionpool').setLevel(logging.WARNING)
def parse_args(args):
if args[0].lower() == 'download':
if len(args) > 0 and args[0].lower() == 'download':
args = args[1:]
raise DeprecationWarning("`download` argument is no longer used")