fix: add msg
black-action / runner / black formatter (push) Failing after -2s Details

This commit is contained in:
0xMRTT 2023-06-21 11:50:24 +02:00
parent 5da1c089c3
commit 19865f0588
Signed by: 0xMRTT
GPG Key ID: 910B287304120902
1 changed files with 2 additions and 0 deletions

View File

@ -164,9 +164,11 @@ def run():
async def generate_image(inspiration):
imagine = Imagine()
filename = str(uuid.uuid4()) + ".png"
print(inspiration)
try:
inspiration = Inspiration[inspiration]
except:
await bot.api.send_markdown_message(room.room_id, f"{inspiration} cannot be found, using default one")
inspiration = Inspiration.INSPIRATION_01
img_data = imagine.sdinsp(