Skip to content

Commit

Permalink
print exceptions instead of reraising
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick80835 committed Oct 5, 2020
1 parent af923ab commit 400c747
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ubot/command_handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later

from re import escape, search
from traceback import print_exc

from telethon import events

Expand Down Expand Up @@ -43,4 +44,4 @@ async def handle_outgoing(self, event):
await command.function(event)
except Exception as exception:
await event.reply(f"`An error occurred in {command.function.__name__}: {exception}`")
raise exception
print_exc()

0 comments on commit 400c747

Please sign in to comment.