Catch require_version ValueError

This commit is contained in:
Philipp Hörist 2017-10-27 10:42:43 +02:00
parent 40547c4d4b
commit 12783e039b
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ try:
gi.require_version('GtkSpell', '3.0')
from gi.repository import GtkSpell
HAS_GTK_SPELL = True
except ImportError:
except (ImportError, ValueError):
HAS_GTK_SPELL = False