diff --git a/src/calibre/db/annotations.py b/src/calibre/db/annotations.py index fa695e3075..83be2e3d65 100644 --- a/src/calibre/db/annotations.py +++ b/src/calibre/db/annotations.py @@ -12,8 +12,10 @@ no_cfi_sort_key = cfi_sort_key('/99999999') def unicode_normalize(text): - from unicodedata import normalize - return normalize('NFKC', text) + if text: + from unicodedata import normalize + text = normalize('NFKC', text) + return text def bookmark_sort_key(b):