Skip to content

Commit cb92e31

Browse files
committed
Add wxversion-specific error message. Closes #885.
1 parent aa5da2e commit cb92e31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/backends/backend_wx.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@
3737
_DEBUG_lvls = {1 : 'Low ', 2 : 'Med ', 3 : 'High', 4 : 'Error' }
3838

3939
missingwx = "Matplotlib backend_wx and backend_wxagg require wxPython >=2.8"
40+
missingwxversion = ("Matplotlib backend_wx and backend_wxagg "
41+
"require wxversion, which was not found.")
4042

4143
if not hasattr(sys, 'frozen'): # i.e., not py2exe
4244
try:
4345
import wxversion
4446
except ImportError:
45-
raise ImportError(missingwx)
47+
raise ImportError(missingwxversion)
4648

4749
# Some early versions of wxversion lack AlreadyImportedError.
4850
# It was added around 2.8.4?

0 commit comments

Comments
 (0)