correctly detect that gtkspell is not installed

This commit is contained in:
Yann Leboulanger 2016-01-05 21:09:13 +01:00
parent e2f74117d5
commit 94b8541fdf
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ class FeaturesWindow:
def speller_available(self):
try:
__import__('gtkspell')
except ImportError:
except ValueError:
return False
return True

View File

@ -3022,7 +3022,7 @@ class Interface:
try:
import gtkspell
spell = gtkspell.Spell(tv, lang)
except (ImportError, TypeError, RuntimeError, OSError):
except (ImportError, TypeError, RuntimeError, OSError, ValueError):
dialogs.AspellDictError(lang)
if gajim.config.get('soundplayer') == '':