Fixed IndexError

This commit is contained in:
Dimitris Zlatanidis 2023-01-21 12:59:40 +02:00
parent 960080a868
commit ef39df068a

View file

@ -491,7 +491,7 @@ def main():
try: try:
argparse.check_for_flags(args[0]) argparse.check_for_flags(args[0])
arguments[args[0]]() arguments[args[0]]()
except KeyError: except (KeyError, IndexError):
Usage().help(1) Usage().help(1)