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.
1 parent cf0471c commit 549c7e7Copy full SHA for 549c7e7
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