8000 Only print actually tested QT APIs when erroring · ksunden/matplotlib@75a77ec · GitHub
[go: up one dir, main page]

Skip to content

Commit 75a77ec

Browse files
committed
Only print actually tested QT APIs when erroring
1 parent 558f111 commit 75a77ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/backends/qt_compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ def _isdeleted(obj):
133133
else:
134134
raise ImportError(
135135
"Failed to import any of the following Qt binding modules: {}"
136-
.format(", ".join(_ETS.values())))
136+
.format(", ".join([QT_API for _, QT_API in _candidates]))
137+
)
137138
else: # We should not get there.
138139
raise AssertionError(f"Unexpected QT_API: {QT_API}")
139140
_version_info = tuple(QtCore.QLibraryInfo.version().segments())

0 commit comments

Comments
 (0)
0