upload: use f-string

Change-Id: I91b99a7147c7c3cb5485d5406316c8ffd79f9272
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/374914
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: Joanna Wang <jojwang@google.com>
Tested-by: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
Josip Sokcevic 2023-05-24 10:19:24 -07:00 committed by LUCI
parent aafed29d34
commit 3eacfdf309

View File

@ -657,7 +657,7 @@ Gerrit Code Review: https://www.gerritcodereview.com/
branch.uploaded = True branch.uploaded = True
except UploadError as e: except UploadError as e:
self.git_event_log.ErrorEvent("upload error: " + str(e)) self.git_event_log.ErrorEvent(f"upload error: {e}")
branch.error = e branch.error = e
branch.uploaded = False branch.uploaded = False
have_errors = True have_errors = True