Increase timeout

This commit is contained in:
yasirarism 2023-09-12 11:33:43 +07:00 committed by GitHub
parent 041b9fe856
commit b0a5839e15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,7 @@ async def carbon_make(self: Client, ctx: Message):
}
try:
response = await fetch.post(
"https://carbon.yasirapi.eu.org/api/cook", json=json_data
"https://carbon.yasirapi.eu.org/api/cook", json=json_data, timeout=20
)
except httpx.HTTPError as exc:
return await ctx.reply_msg(f"HTTP Exception for {exc.request.url} - {exc}")