From 59baf31dfe7e7b98ab7b95fcda7a3bd8ed3ca516 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 2 Apr 2019 00:30:13 +0200 Subject: [PATCH] Correctly pass exceptions --- royalnet/bots/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalnet/bots/telegram.py b/royalnet/bots/telegram.py index 815b143a..6568e3eb 100644 --- a/royalnet/bots/telegram.py +++ b/royalnet/bots/telegram.py @@ -95,7 +95,7 @@ class TelegramBot: try: return await self.Call(message.chat, command, *parameters, update=update).run() except Exception as exc: - return await self.Call(message.chat, self.error_command, *parameters, update=update).run() + return await self.Call(message.chat, self.error_command, *parameters, update=update, exception=exc).run() async def handle_net_request(self, message: Message): pass