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(
|
||||
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())
|
||||
|
Reference in New Issue
Block a user