mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-06-03 12:35:22 -04:00
Proper error message when hunspell fails to load
This commit is contained in:
@@ -21,7 +21,7 @@ Dictionary = namedtuple('Dictionary', 'primary_locale locales dicpath affpath bu
|
||||
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'] = {}
|
||||
|
||||
Reference in New Issue
Block a user