diff --git a/src/calibre/utils/icu.py b/src/calibre/utils/icu.py index d5bef449c4..4daec9d553 100644 --- a/src/calibre/utils/icu.py +++ b/src/calibre/utils/icu.py @@ -35,7 +35,7 @@ def load_icu(): if _icu is None: print plugins['icu'][1] else: - if not _icu.ok: + if not getattr(_icu, 'ok', False): print 'icu not ok' _icu = None return _icu