From 9dd00e7d030628d7db174b4e195ac85d4e94e1d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 30 Jan 2018 15:18:17 +0100 Subject: [PATCH] attempt at error reporting --- robot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/robot.py b/robot.py index 6f0f08c..d81778c 100644 --- a/robot.py +++ b/robot.py @@ -97,6 +97,8 @@ def start(bot, update): def error(bot, update, error): logger.error(error) + if update is not None: + update.message.reply_text("Something is fucked: %s" % error) def main():