From 34c9384e8f16bc0732ccceb0d7c2f02dbe6f3d73 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 28 Feb 2016 15:12:13 +0100 Subject: [PATCH] =?UTF-8?q?Cos=C3=AC=20=C3=A8=20pi=C3=B9=20bellino.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index b997184d..63f365ad 100644 --- a/bot.py +++ b/bot.py @@ -720,5 +720,6 @@ while True: raise Exception("Ho appena fatto crashare tutto apposta. Sono un genio.") else: print("@" + username + " bloccato.") - except Exception: - telegram.sendmessage(sys.exc_info(), -2141322) + except Exception as e: + telegram.sendmessage("*ERRORE:\n*" + "{0}\n".format(repr(e.args)), -2141322)