From 1e9ac6035f681d3fdd65b6dce85196024f192cd3 Mon Sep 17 00:00:00 2001 From: Andrea Spacca Date: Tue, 14 Sep 2021 08:51:03 +0200 Subject: [PATCH] Fix upload_and_send_image error message --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 7c3ac18..a565860 100755 --- a/bot.py +++ b/bot.py @@ -117,7 +117,7 @@ class Bot: try: matrix_uri, mimetype, w, h, size = await self.upload_image(url, blob=blob, no_cache=no_cache) except (UploadFailed, ValueError): - return await self.send_text(room, f"Sorry. Something went wrong fetching {url} and uploading it to the image to matrix server :(") + return await self.send_text(room, f"Sorry. Something went wrong fetching {url} and uploading the image to matrix server :(") return await self.send_image(room, matrix_uri, text, mimetype, w, h, size)