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

Skip to content

Commit 8eb36dc

Browse files
committed
Follow-on to 5bb6405 to be safer about the version check in the backend itself.
1 parent 3165537 commit 8eb36dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/backends/backend_gtk3.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ def fn_name(): return sys._getframe(1).f_code.co_name
1010

1111
try:
1212
gi.require_version("Gtk", "3.0")
13+
except AttributeError:
14+
raise ImportError(
15+
"pygobject version too old -- it must have require_version")
1316
except ValueError:
1417
raise ImportError(
1518
"Gtk3 backend requires the GObject introspection bindings for Gtk 3 "

0 commit comments

Comments
 (0)