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): def speller_available(self):
try: try:
__import__('gtkspell') __import__('gtkspell')
except ImportError: except ValueError:
return False return False
return True return True

View File

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