Fix console exception filtering for py3

This commit is contained in:
Luke Campagnola 2020-07-13 12:49:57 -07:00
parent 0bc186fe7d
commit c51a84ae4e

View File

@ -447,7 +447,7 @@ class ConsoleWidget(QtGui.QWidget):
filterStr = str(self.ui.filterText.text())
if filterStr != '':
if isinstance(exc, Exception):
msg = exc.message
msg = traceback.format_exception_only(type(exc), exc)
elif isinstance(exc, basestring):
msg = exc
else: