Merge branch 'master' of https://github.com/cbhaley/calibre into master

This commit is contained in:
Kovid Goyal 2020-09-13 19:21:56 +05:30
commit 4b58b7e550
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -388,8 +388,7 @@ class _Interpreter(object):
try:
name = self.expr(prog.expression)
res = getattr(self.parent_book, name, None)
if res is None:
self.error(_('Unknown field {0}').format(name))
if res is not None:
if isinstance(res, list):
fm = self.parent_book.metadata_for_field(name)
if fm is None: