mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-24 16:20:32 +02:00
Add try/catch in Google Sheets scripts
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -55,4 +55,7 @@ class Command(BaseCommand):
|
||||
"address": notif_url,
|
||||
"expiration": str(int(1000 * tomorrow.timestamp())),
|
||||
}
|
||||
http_client.request(method="POST", endpoint=url, json=body).raise_for_status()
|
||||
try:
|
||||
http_client.request(method="POST", endpoint=url, json=body).raise_for_status()
|
||||
except Exception as e:
|
||||
self.stderr.write(self.style.ERROR(f"Error while renewing notifications for {tournament.name}: {e}"))
|
||||
|
Reference in New Issue
Block a user