Catch require_version ValueError
This commit is contained in:
parent
40547c4d4b
commit
12783e039b
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ try:
|
||||||
gi.require_version('GtkSpell', '3.0')
|
gi.require_version('GtkSpell', '3.0')
|
||||||
from gi.repository import GtkSpell
|
from gi.repository import GtkSpell
|
||||||
HAS_GTK_SPELL = True
|
HAS_GTK_SPELL = True
|
||||||
except ImportError:
|
except (ImportError, ValueError):
|
||||||
HAS_GTK_SPELL = False
|
HAS_GTK_SPELL = False
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue