Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa57933

Browse files
authored
Merge pull request #20098 from meeseeksmachine/auto-backport-of-pr-20096-on-v3.4.x
Backport PR #20096 on branch v3.4.x (Ignore errors for sip with no setapi.)
2 parents cf0471c + 549c7e7 commit fa57933

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
@@ -115,7 +115,7 @@ def _setup_pyqt4_internal(api):
115115
for _sip_api in _sip_apis:
116116
try:
117117
sip.setapi(_sip_api, api)
118-
except ValueError:
118+
except (AttributeError, ValueError):
119119
pass
120120
from PyQt4 import QtCore, QtGui
121121
import sip # Always succeeds *after* importing PyQt4.

0 commit comments

Comments
 (0)