Fix #195 AttributeError
This commit is contained in:
parent
dcd69da85f
commit
0f3957a319
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue