From a5e258f7fa96818e10a0eec9a1e11c747f4f2a58 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 14 May 2023 17:22:57 +0100 Subject: [PATCH] Fix throwing exception --- app/tasks/webhooktasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tasks/webhooktasks.py b/app/tasks/webhooktasks.py index 24500151..9fdba334 100644 --- a/app/tasks/webhooktasks.py +++ b/app/tasks/webhooktasks.py @@ -53,5 +53,5 @@ def post_discord_webhook(username: Optional[str], content: str, is_queue: bool, res = requests.post(discord_url, json=json, headers={"Accept": "application/json"}) if res.status_code != 200: - raise f"Failed to submit Discord webhook {res.json}" + raise Exception(f"Failed to submit Discord webhook {res.json}") res.raise_for_status()