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:
|
||||
import gtkspell
|
||||
HAS_GTK_SPELL = True
|
||||
except ImportError:
|
||||
except (ImportError, ValueError):
|
||||
HAS_GTK_SPELL = False
|
||||
|
||||
from common import dbus_support
|
||||
|
|
|
@ -52,7 +52,7 @@ import profile_window
|
|||
try:
|
||||
import gtkspell
|
||||
HAS_GTK_SPELL = True
|
||||
except ImportError:
|
||||
except (ImportError, ValueError):
|
||||
HAS_GTK_SPELL = False
|
||||
|
||||
from common import helpers
|
||||
|
|
|
@ -52,7 +52,7 @@ from common import ged
|
|||
try:
|
||||
import gtkspell
|
||||
HAS_GTK_SPELL = True
|
||||
except ImportError:
|
||||
except (ImportError, ValueError):
|
||||
HAS_GTK_SPELL = False
|
||||
|
||||
# those imports are not used in this file, but in files that 'import dialogs'
|
||||
|
|
Loading…
Reference in New Issue