Skip to content
Snippets Groups Projects
Commit f91405ef authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Catch RuntimeError also in qt resources import

Python 3 generates an RuntimeError regarding the mix of PyQt4/PyQt5
rather than an ImportError from IPython in Python 2.
parent fbda4d95
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ from qtpy.QtCore import Signal
try:
from ErrorReporter import resources_qt5 # noqa
except ImportError:
except (ImportError, RuntimeError):
from ErrorReporter import resources_qt4 # noqa
from mantidqt.utils.qt import load_ui
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment