correctly detect missing gtkpell module
This commit is contained in:
parent
dcef0455c8
commit
96de12a39f
|
@ -78,7 +78,7 @@ from command_system.implementation.execute import Execute, Show
|
||||||
try:
|
try:
|
||||||
import gtkspell
|
import gtkspell
|
||||||
HAS_GTK_SPELL = True
|
HAS_GTK_SPELL = True
|
||||||
except ImportError:
|
except (ImportError, ValueError):
|
||||||
HAS_GTK_SPELL = False
|
HAS_GTK_SPELL = False
|
||||||
|
|
||||||
from common import dbus_support
|
from common import dbus_support
|
||||||
|
|
|
@ -52,7 +52,7 @@ import profile_window
|
||||||
try:
|
try:
|
||||||
import gtkspell
|
import gtkspell
|
||||||
HAS_GTK_SPELL = True
|
HAS_GTK_SPELL = True
|
||||||
except ImportError:
|
except (ImportError, ValueError):
|
||||||
HAS_GTK_SPELL = False
|
HAS_GTK_SPELL = False
|
||||||
|
|
||||||
from common import helpers
|
from common import helpers
|
||||||
|
|
|
@ -52,7 +52,7 @@ from common import ged
|
||||||
try:
|
try:
|
||||||
import gtkspell
|
import gtkspell
|
||||||
HAS_GTK_SPELL = True
|
HAS_GTK_SPELL = True
|
||||||
except ImportError:
|
except (ImportError, ValueError):
|
||||||
HAS_GTK_SPELL = False
|
HAS_GTK_SPELL = False
|
||||||
|
|
||||||
# those imports are not used in this file, but in files that 'import dialogs'
|
# those imports are not used in this file, but in files that 'import dialogs'
|
||||||
|
|
Loading…
Reference in New Issue