correctly detect missing gtkpell module

This commit is contained in:
Yann Leboulanger 2015-12-28 22:12:34 +01:00
parent dcef0455c8
commit 96de12a39f
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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'