mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-26 23:44:15 +02:00
Proper error message when hunspell fails to load
This commit is contained in:
parent
66b8f4dcc6
commit
7fafdfcd9f
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@
|
|||
LoadedDictionary = namedtuple('Dictionary', 'primary_locale locales obj builtin name id')
|
||||
hunspell = plugins['hunspell'][0]
|
||||
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.defaults['preferred_dictionaries'] = {}
|
||||
dprefs.defaults['preferred_locales'] = {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue