Reformat files with black

This commit is contained in:
Orsiris de Jong 2023-05-27 19:54:06 +02:00
parent 0240173b35
commit 58a00a0221

View file

@ -164,14 +164,16 @@ def decrypt_data(
) )
except ValueError as exc: except ValueError as exc:
logger.error( logger.error(
"Cannot decrypt this configuration file for option \"{}\". Has the AES key changed ? {}".format(option, 'Cannot decrypt this configuration file for option "{}". Has the AES key changed ? {}'.format(
exc option, exc
) )
) )
logger.debug("Trace:", exc_info=True) logger.debug("Trace:", exc_info=True)
return False return False
except TypeError: 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.debug("Trace:", exc_info=True)
logger.critical("Won't run with a non properly encrypted config file.") logger.critical("Won't run with a non properly encrypted config file.")
sys.exit(98) sys.exit(98)