From daeca0dc1a831cd9658d924bfe9134fb21dd97ff Mon Sep 17 00:00:00 2001 From: Revulate Date: Mon, 14 Oct 2024 17:40:39 -0700 Subject: [PATCH] modified: cogs/dvp.py modified: requirements.txt --- cogs/dvp.py | 2 ++ requirements.txt | Bin 3016 -> 3036 bytes 2 files changed, 2 insertions(+) diff --git a/cogs/dvp.py b/cogs/dvp.py index 83017ae..25695e1 100644 --- a/cogs/dvp.py +++ b/cogs/dvp.py @@ -350,6 +350,7 @@ async def update_game_data(self, game_name, time_played): ) await db.commit() + @retry(stop=stop_after_attempt(3), wait=wait_exponential(multiplier=1, min=4, max=10)) async def update_google_sheet(self): creds = Credentials.from_service_account_file( self.creds_file, scopes=["https://www.googleapis.com/auth/spreadsheets"] @@ -403,6 +404,7 @@ async def update_google_sheet(self): self.logger.info("Google Sheet updated successfully.") except HttpError as error: self.logger.error(f"An error occurred while updating the Google Sheet: {error}") + raise async def apply_sheet_formatting(self, service, data_row_count): try: diff --git a/requirements.txt b/requirements.txt index fd8d1cb919d8a56b09c5dc901b8ce55872c47e24..233dd9b08ca20d84b1431b6eb7bfaf4a1c55ce75 100644 GIT binary patch delta 28 icmX>hen))632qTy1}=sYhE#?;hD3&BhD;#4k^um9&IaND delta 7 Ocmca3enNc132p!mgacLp