forked from p15670423/monkey
Added the logging for errors encountered in configuration decryption workflow
This commit is contained in:
parent
fbe9b4f4d7
commit
8a673cc76c
|
@ -75,6 +75,9 @@ class ConfigurationImport(flask_restful.Resource):
|
|||
config = decrypt_ciphertext(config, request_contents["password"])
|
||||
return json.loads(config)
|
||||
except (JSONDecodeError, InvalidCiphertextError):
|
||||
logger.exception(
|
||||
"Exception encountered when trying " "to extract plaintext configuraiton."
|
||||
)
|
||||
raise InvalidConfigurationError
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Reference in New Issue