mirror of
https://github.com/minetest/contentdb.git
synced 2024-09-20 04:48:30 +02:00
Fix throwing exception
This commit is contained in:
parent
8178232911
commit
a5e258f7fa
@ -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"})
|
res = requests.post(discord_url, json=json, headers={"Accept": "application/json"})
|
||||||
if res.status_code != 200:
|
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()
|
res.raise_for_status()
|
||||||
|
Loading…
Reference in New Issue
Block a user