mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Possible fix for exception on direct access to local books
Cannot reproduce so not sure. Fixes #2073972 [[Content Server] Downloaded Books page error when using Custom Book List](https://bugs.launchpad.net/calibre/+bug/2073972)
This commit is contained in:
parent
c8f7cf15c1
commit
ce873c757a
@ -62,7 +62,7 @@ def render_field(field, mi, book_id): # {{{
|
|||||||
return book_id + ''
|
return book_id + ''
|
||||||
field_metadata = library_data.field_metadata
|
field_metadata = library_data.field_metadata
|
||||||
fm = field_metadata[field]
|
fm = field_metadata[field]
|
||||||
if not fm:
|
if not fm or not mi:
|
||||||
return
|
return
|
||||||
val = mi[field]
|
val = mi[field]
|
||||||
if val is undefined or val is None:
|
if val is undefined or val is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user