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 "