From a55df8b5e186f1e8e1b80e455c03681c85dcdf22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Sun, 15 Nov 2015 19:14:12 +0100 Subject: [PATCH] update example --- examples/eventhandler_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/eventhandler_bot.py b/examples/eventhandler_bot.py index 16b50ee6f..886834841 100644 --- a/examples/eventhandler_bot.py +++ b/examples/eventhandler_bot.py @@ -57,8 +57,8 @@ def messageHandler(bot, update): bot.sendMessage(update.message.chat_id, text=update.message.text) -def errorHandler(bot, error): - print(str(error)) +def errorHandler(bot, update, error): + print('Update %s caused error %s' % (update, error)) def CLIReplyCommandHandler(bot, update):