diff --git a/skimage/io/_plugins/gtk_plugin.py b/skimage/io/_plugins/gtk_plugin.py index 961aaa0a..6130289c 100644 --- a/skimage/io/_plugins/gtk_plugin.py +++ b/skimage/io/_plugins/gtk_plugin.py @@ -5,7 +5,7 @@ try: # or else the gui import might trample another # gui's pyos_inputhook. window_manager.acquire('gtk') -except GuiLockError, gle: +except GuiLockError as gle: print(gle) else: try: