Skip to content

Commit

Permalink
Added credentials format check.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanrhu committed Oct 26, 2020
1 parent 7678905 commit 954116a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ def argHandler_terminalId(name):
def argHandler_credentials(_credentials):
global credentials

if ":" not in _credentials:
print("[Error] Credentials format must be such as USER:PASS.\n")
exit(0)

credentials = _credentials

arg_config["CREDENTIALS"] = credentials
Expand Down

0 comments on commit 954116a

Please sign in to comment.