Fix console exception filtering for py3
This commit is contained in:
parent
0bc186fe7d
commit
c51a84ae4e
|
@ -447,7 +447,7 @@ class ConsoleWidget(QtGui.QWidget):
|
||||||
filterStr = str(self.ui.filterText.text())
|
filterStr = str(self.ui.filterText.text())
|
||||||
if filterStr != '':
|
if filterStr != '':
|
||||||
if isinstance(exc, Exception):
|
if isinstance(exc, Exception):
|
||||||
msg = exc.message
|
msg = traceback.format_exception_only(type(exc), exc)
|
||||||
elif isinstance(exc, basestring):
|
elif isinstance(exc, basestring):
|
||||||
msg = exc
|
msg = exc
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user