From 3eacfdf3090a961ada4ebeb8e28f0782eac4c9d8 Mon Sep 17 00:00:00 2001 From: Josip Sokcevic Date: Wed, 24 May 2023 10:19:24 -0700 Subject: [PATCH] upload: use f-string Change-Id: I91b99a7147c7c3cb5485d5406316c8ffd79f9272 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/374914 Commit-Queue: Josip Sokcevic Reviewed-by: Joanna Wang Tested-by: Josip Sokcevic Reviewed-by: Mike Frysinger --- subcmds/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subcmds/upload.py b/subcmds/upload.py index f9c5e7f8..8d949bef 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py @@ -657,7 +657,7 @@ Gerrit Code Review: https://www.gerritcodereview.com/ branch.uploaded = True 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.uploaded = False have_errors = True