Skip to content

Commit

Permalink
Print error messages for uncaught module exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrct committed Aug 15, 2017
1 parent 3403569 commit 97203d3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions halibot/halobject.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import logging
import logging, traceback
import asyncio
import inspect
import copy
Expand Down Expand Up @@ -68,8 +68,10 @@ def sync_send_to(self, msg, dests):
return r

async def _receive(self, msg):
self.receive(msg)

try:
self.receive(msg)
except Exception as e:
traceback.print_exc()

def receive(self, msg):
pass
Expand Down

0 comments on commit 97203d3

Please sign in to comment.