forked from Mirrors/humblebundle-downloader
Fix crash if no arguments are passed to cli
This commit is contained in:
@@ -15,7 +15,7 @@ logging.getLogger('urllib3.connectionpool').setLevel(logging.WARNING)
|
|||||||
|
|
||||||
|
|
||||||
def parse_args(args):
|
def parse_args(args):
|
||||||
if args[0].lower() == 'download':
|
if len(args) > 0 and args[0].lower() == 'download':
|
||||||
args = args[1:]
|
args = args[1:]
|
||||||
raise DeprecationWarning("`download` argument is no longer used")
|
raise DeprecationWarning("`download` argument is no longer used")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user