1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Correctly pass exceptions

This commit is contained in:
Steffo 2019-04-02 00:30:13 +02:00
parent 65b965ed4c
commit 59baf31dfe

View file

@ -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