Added missing texts

This commit is contained in:
2023-02-25 23:31:09 +01:00
parent 88f8bb4a52
commit 2387823151
3 changed files with 12 additions and 12 deletions

View File

@@ -39,9 +39,9 @@ async def send_content(app: PosterClient) -> None:
response = get(f'{configGet("address", "posting", "api")}/photos/{pic[0]}', headers={"Authorization": f"Bearer {token}"}, stream=True)
if response.status_code != 200:
logWrite(locale("post_invalid_pic", "console", locale=configGet("locale")).format(str(response.json())))
logWrite(locale("post_invalid_pic", "console", locale=configGet("locale")).format(response.status_code, str(response.json())))
if configGet("error", "reports"):
await app.send_message(app.owner, locale("post_invalid_pic", "message", locale=configGet("locale")).format(response.json()))
await app.send_message(app.owner, locale("post_invalid_pic", "message", locale=configGet("locale")).format(response.status_code, response.json()))
tmp_dir = str(uuid4())