Catch require_version ValueError
This commit is contained in:
parent
40547c4d4b
commit
12783e039b
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue