mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Proper error message when hunspell fails to load
This commit is contained in:
parent
66b8f4dcc6
commit
7fafdfcd9f
@ -21,7 +21,7 @@ Dictionary = namedtuple('Dictionary', 'primary_locale locales dicpath affpath bu
|
|||||||
LoadedDictionary = namedtuple('Dictionary', 'primary_locale locales obj builtin name id')
|
LoadedDictionary = namedtuple('Dictionary', 'primary_locale locales obj builtin name id')
|
||||||
hunspell = plugins['hunspell'][0]
|
hunspell = plugins['hunspell'][0]
|
||||||
if hunspell is None:
|
if hunspell is None:
|
||||||
raise RuntimeError('Failed to load hunspell: %s' % plugins[1])
|
raise RuntimeError('Failed to load hunspell: %s' % plugins['hunspell'][1])
|
||||||
dprefs = JSONConfig('dictionaries/prefs.json')
|
dprefs = JSONConfig('dictionaries/prefs.json')
|
||||||
dprefs.defaults['preferred_dictionaries'] = {}
|
dprefs.defaults['preferred_dictionaries'] = {}
|
||||||
dprefs.defaults['preferred_locales'] = {}
|
dprefs.defaults['preferred_locales'] = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user