diff --git a/modules/apod.py b/modules/apod.py index b04c0ac..05b92e1 100644 --- a/modules/apod.py +++ b/modules/apod.py @@ -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: