mirror of
https://github.com/netinvent/npbackup.git
synced 2024-09-21 15:26:24 +08:00
Reformat files with black
This commit is contained in:
parent
0240173b35
commit
58a00a0221
|
@ -164,14 +164,16 @@ def decrypt_data(
|
|||
)
|
||||
except ValueError as exc:
|
||||
logger.error(
|
||||
"Cannot decrypt this configuration file for option \"{}\". Has the AES key changed ? {}".format(option,
|
||||
exc
|
||||
'Cannot decrypt this configuration file for option "{}". Has the AES key changed ? {}'.format(
|
||||
option, exc
|
||||
)
|
||||
)
|
||||
logger.debug("Trace:", exc_info=True)
|
||||
return False
|
||||
except TypeError:
|
||||
logger.error("Cannot decrypt this configuration file. No base64 encoded strings available.")
|
||||
logger.error(
|
||||
"Cannot decrypt this configuration file. No base64 encoded strings available."
|
||||
)
|
||||
logger.debug("Trace:", exc_info=True)
|
||||
logger.critical("Won't run with a non properly encrypted config file.")
|
||||
sys.exit(98)
|
||||
|
|
Loading…
Reference in a new issue