Skip to content

Commit 54a4b6f

Browse files
authored
Merge pull request matplotlib#20096 from QuLogic/sip-no-setapi
MNT: Ignore errors for sip with no setapi.
2 parents 679ca17 + f3f85ed commit 54a4b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/qt_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _setup_pyqt4_internal(api):
117117
for _sip_api in _sip_apis:
118118
try:
119119
sip.setapi(_sip_api, api)
120-
except ValueError:
120+
except (AttributeError, ValueError):
121121
pass
122122
from PyQt4 import QtCore, QtGui
123123
import sip # Always succeeds *after* importing PyQt4.

0 commit comments

Comments
 (0)