Core: Convert to format strings across the whole base

This commit is contained in:
Mike Auty
2021-07-18 15:53:58 +01:00
parent 99e959a15a
commit 9f52a15734
92 changed files with 386 additions and 386 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ def construct_plugin(context: interfaces.context.ContextInterface,
if unsatisfied:
for error in errors:
error_string = [x for x in error.format_exception_only()][-1]
vollog.warning("Automagic exception occurred: {}".format(error_string[:-1]))
vollog.warning(f"Automagic exception occurred: {error_string[:-1]}")
vollog.log(constants.LOGLEVEL_V, "".join(error.format(chain = True)))
raise exceptions.UnsatisfiedException(unsatisfied)