Commit f5ce0071 authored by Florian Pritz's avatar Florian Pritz
Browse files

Use f strings instead of String.format


Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent a73b1439
......@@ -77,10 +77,9 @@ class ArchiveUploader:
filename = os.path.basename(f)
self.db.add_file(filename)
else:
print("Upload failed with status code '{}' for directory '{}' and file: {}"
.format(code, directory, f))
print(f"Upload failed with status code '{code}' for directory '{directory}' and file: {f}")
except Exception as e:
print("{}: exception raised".format(identifier), file=sys.stderr)
print(f"{identifier}: exception raised", file=sys.stderr)
print(e, file=sys.stderr)
print(directory)
raise
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment