From 0f3957a3190eaa5766b7457854ca67ef46a08bb3 Mon Sep 17 00:00:00 2001 From: gammafn Date: Wed, 16 Feb 2022 21:25:24 -0600 Subject: [PATCH] Fix #195 AttributeError --- modules/apod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: