Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf0471c + 549c7e7 commit fa57933Copy full SHA for fa57933
1 file changed
lib/matplotlib/backends/qt_compat.py
@@ -115,7 +115,7 @@ def _setup_pyqt4_internal(api):
115
for _sip_api in _sip_apis:
116
try:
117
sip.setapi(_sip_api, api)
118
- except ValueError:
+ except (AttributeError, ValueError):
119
pass
120
from PyQt4 import QtCore, QtGui
121
import sip # Always succeeds *after* importing PyQt4.
0 commit comments