Fixed coroutines not being awaited

This commit is contained in:
Profitroll 2023-05-16 12:30:56 +02:00
parent 93804345df
commit 337a7b28aa

View File

@ -53,14 +53,14 @@ async def send_content(app: PosterClient) -> None:
logWrite(
locale(
"post_invalid_pic", "console", locale=configGet("locale")
).format(response.status, str(response.json()))
).format(response.status, str(await response.json()))
)
if configGet("error", "reports"):
await app.send_message(
app.owner,
locale(
"post_invalid_pic", "message", locale=configGet("locale")
).format(response.status, response.json()),
).format(response.status, await response.json()),
)
tmp_dir = str(uuid4())