diff --git a/src/calibre/ebooks/metadata/book/render.py b/src/calibre/ebooks/metadata/book/render.py index ee96c20b58..40ef1c9377 100644 --- a/src/calibre/ebooks/metadata/book/render.py +++ b/src/calibre/ebooks/metadata/book/render.py @@ -36,7 +36,7 @@ def displayable_field_keys(mi): except: continue if ( - m is not None and m['kind'] == 'field' and m['datatype'] is not None and + m is not None and m.get('kind') == 'field' and m.get('datatype') is not None and k not in ('au_map', 'marked', 'ondevice', 'cover', 'series_sort') and not k.endswith('_index') ):