correctly detect that gtkspell is not installed
This commit is contained in:
parent
e2f74117d5
commit
94b8541fdf
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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') == '':
|
||||||
|
|
Loading…
Reference in New Issue