Fix #195 AttributeError

This commit is contained in:
gammafn 2022-02-16 21:25:24 -06:00
parent dcd69da85f
commit 0f3957a319
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class MatrixModule(BotModule):
try:
matrix_uri, mimetype, w, h, size = await bot.upload_image(apod.hdurl)
except (UploadFailed, TypeError, ValueError):
await self.send_text(room, f"Something went wrong uploading {apod.hdurl}.")
await bot.send_text(room, f"Something went wrong uploading {apod.hdurl}.")
await bot.send_image(room, matrix_uri, apod.hdurl, mimetype, w, h, size)
await bot.send_text(room, f"{apod.explanation}")
if matrix_uri and set_room_avatar: