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

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

View File

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