Skip to content
Snippets Groups Projects
Commit 663ff2cd authored by François Revol's avatar François Revol
Browse files

Exit with error code 1 in case of bad credentials

parent 330b7e8c
Branches
Tags
1 merge request!35Exit with error code 1 in case of bad credentials
...@@ -35,7 +35,7 @@ signer = SigningKey(salt, password)\ ...@@ -35,7 +35,7 @@ signer = SigningKey(salt, password)\
# check public key # check public key
if signer.pubkey != pubkey: if signer.pubkey != pubkey:
print("Bad credentials !") print("Bad credentials !")
exit(0) exit(1)
# save private keys in a file (json format) # save private keys in a file (json format)
signer.save(PRIVATE_KEYS_FILE_PATH) signer.save(PRIVATE_KEYS_FILE_PATH)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment