Use f-strings or .format() over percent style
https://docs.astral.sh/ruff/rules/printf-string-formatting/ Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
@ -362,7 +362,7 @@ def main():
|
||||
exit_helper(1)
|
||||
|
||||
except GentoolkitException as err:
|
||||
output.eerror("%s: %s" % (query, str(err)))
|
||||
output.eerror(f"{query}: {str(err)}")
|
||||
exit_helper(1)
|
||||
|
||||
except Exception as err:
|
||||
@ -372,7 +372,7 @@ def main():
|
||||
traceback.print_exc(file=sys.stderr)
|
||||
print("-" * 60)
|
||||
|
||||
output.eerror("%s: %s" % (query, str(err)))
|
||||
output.eerror(f"{query}: {str(err)}")
|
||||
exit_helper(1)
|
||||
|
||||
if not ret and not CONFIG["quiet"]:
|
||||
|
Reference in New Issue
Block a user