From c7697f299431380e8da93f388237ec8a6fcc42d1 Mon Sep 17 00:00:00 2001 From: Ville Ranki Date: Thu, 27 May 2021 23:36:18 +0300 Subject: [PATCH] Nicer and more correct error on image failure --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 2817b64..29b11bd 100755 --- a/bot.py +++ b/bot.py @@ -101,7 +101,7 @@ class Bot: self.uri_cache[cache_key] = list(res) self.save_settings() except UploadFailed: - return await self.send_text(room, "sorry. something went wrong uploading the image to matrix server :(") + return await self.send_text(room, f"Sorry. Something went wrong fetching {url} and uploading it to the image to matrix server :(") if not text and not blob: text = f"{url}"