Fixed coroutines not being awaited
This commit is contained in:
parent
93804345df
commit
337a7b28aa
@ -53,14 +53,14 @@ async def send_content(app: PosterClient) -> None:
|
|||||||
logWrite(
|
logWrite(
|
||||||
locale(
|
locale(
|
||||||
"post_invalid_pic", "console", locale=configGet("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"):
|
if configGet("error", "reports"):
|
||||||
await app.send_message(
|
await app.send_message(
|
||||||
app.owner,
|
app.owner,
|
||||||
locale(
|
locale(
|
||||||
"post_invalid_pic", "message", locale=configGet("locale")
|
"post_invalid_pic", "message", locale=configGet("locale")
|
||||||
).format(response.status, response.json()),
|
).format(response.status, await response.json()),
|
||||||
)
|
)
|
||||||
|
|
||||||
tmp_dir = str(uuid4())
|
tmp_dir = str(uuid4())
|
||||||
|
Reference in New Issue
Block a user