1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +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: try:
return await self.Call(message.chat, command, *parameters, update=update).run() return await self.Call(message.chat, command, *parameters, update=update).run()
except Exception as exc: 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): async def handle_net_request(self, message: Message):
pass pass