Commit 14834b41 authored by Dan Pascu's avatar Dan Pascu

Compacted code logging the exception backtrace

parent adb47c44
...@@ -274,8 +274,7 @@ class Blink(QApplication): ...@@ -274,8 +274,7 @@ class Blink(QApplication):
try: try:
event.function(*event.args, **event.kw) event.function(*event.args, **event.kw)
except: except:
log.error('Exception occurred while calling function %s in the GUI thread' % event.function.__name__) log.exception('Exception occurred while calling function %s in the GUI thread' % event.function.__name__)
log.err()
def handle_notification(self, notification): def handle_notification(self, notification):
handler = getattr(self, '_NH_%s' % notification.name, Null) handler = getattr(self, '_NH_%s' % notification.name, Null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment