1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00

log imgur errors

This commit is contained in:
Steffo 2020-07-23 21:23:42 +02:00
parent 7eff7f4880
commit be75d0afe3
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
[tool.poetry]
name = "royalpack"
version = "5.13.8"
version = "5.13.9"
description = "A Royalnet command pack for the Royal Games community"
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
license = "AGPL-3.0+"

View file

@ -26,7 +26,7 @@ async def to_imgur(imgur_api_key, photosizes: List[telegram.PhotoSize], caption=
}) as request:
response = await request.json()
if not response["success"]:
raise rc.CommandError("Imgur returned an error in the image upload.")
raise rc.CommandError(f"Imgur returned an error in the image upload: {response}")
return response["data"]["link"]