From 3470213fb3374fec1101b04447ba6d2a26c1ec41 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 3 May 2026 14:53:17 +0000 Subject: [PATCH] fix: combine f-strings, align product name in notification titles Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/2bcd611e-3598-4b83-95bd-3276a7d5ad7c Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- backend/app/services/gmail_service.py | 7 ++----- backend/app/workers/tasks.py | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/backend/app/services/gmail_service.py b/backend/app/services/gmail_service.py index 64a4ff6..6583f3c 100644 --- a/backend/app/services/gmail_service.py +++ b/backend/app/services/gmail_service.py @@ -469,7 +469,7 @@ class GmailService: ) GMAIL_TOKEN_REFRESHES_TOTAL.inc() logger.info( - "Gmail access token refreshed proactively; " "new expiry: %s", + "Gmail access token refreshed proactively; new expiry: %s", self.credentials.expiry, ) return { @@ -477,10 +477,7 @@ class GmailService: "expiry": self.credentials.expiry, } except google.auth.exceptions.RefreshError as e: - error_msg = ( - f"Gmail refresh token has been revoked or is invalid — " - f"the user must re-authorise. Detail: {e}" - ) + error_msg = f"Gmail refresh token has been revoked or is invalid — the user must re-authorise. Detail: {e}" logger.error(error_msg) raise GmailAuthError(error_msg) except Exception as e: diff --git a/backend/app/workers/tasks.py b/backend/app/workers/tasks.py index d442415..3d14b36 100644 --- a/backend/app/workers/tasks.py +++ b/backend/app/workers/tasks.py @@ -903,7 +903,7 @@ async def refresh_gmail_tokens(): await send_user_notification( db=notif_db, user_id=int(cred.user_id), - title="InboxConverge: Gmail Re-authorisation Required", + title="InboxRescue: Gmail Re-authorisation Required", body=( "Your Gmail access has been revoked. " "Please open Settings → Gmail API and click "