mirror of
https://github.com/xtream1101/humblebundle-downloader.git
synced 2025-02-01 19:42:43 +01:00
Fix crash if no arguments are passed to cli
This commit is contained in:
parent
95302d81e5
commit
6a9773734a
@ -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")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user