From 6a4b5c9005e872c90c0962c60732d8fed1b2d4b1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 19 Jun 2016 23:24:58 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/metadata/book/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') ):