Skip to content

Commit

Permalink
handle rare cases of project ids being '-v' or '--verbose'
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Jun 3, 2021
1 parent 8b8f73f commit 3b48755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyphe_backend/crawler/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

verbose = False
for arg in [a for a in sys.argv[1:] if a.strip()]:
if arg == "-v" or arg == "--verbose":
if len(sys.argv) > 2 and (arg == "-v" or arg == "--verbose"):
verbose = True
else:
project = arg
Expand Down

0 comments on commit 3b48755

Please sign in to comment.