forked from p34709852/monkey
Island: change the log message level of wrong password in password_based_bytes_encryptor.py to debug
Wrong password is in some cases expected behavior, not an error of an application
This commit is contained in:
parent
8e6a2d8e7d
commit
aa6f202a8f
|
@ -47,7 +47,7 @@ class PasswordBasedBytesEncryptor(IEncryptor):
|
|||
)
|
||||
except ValueError as ex:
|
||||
if str(ex).startswith("Wrong password"):
|
||||
logger.error("Wrong password provided for decryption.")
|
||||
logger.debug("Wrong password provided for decryption.")
|
||||
raise InvalidCredentialsError
|
||||
else:
|
||||
logger.error("The provided ciphertext was corrupt.")
|
||||
|
|
Loading…
Reference in New Issue