From f7d13734f4bae2e973188991d127b9fa80684166 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 8 Dec 2024 17:32:57 +0300 Subject: [PATCH] show warning with original message when theme not found --- ubot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ubot.py b/ubot.py index b1f3a3f..ef9a163 100644 --- a/ubot.py +++ b/ubot.py @@ -277,6 +277,8 @@ async def main(): if r: logger.debug(f'found theme {trying_theme_index}') break + if r == []: + logger.warning('theme not found, showing original message: ' + m.text) logger.debug(str(r)) if r: u1url = r[0][0]