mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
b0de1e9633
commit
c420ec0463
@ -1233,7 +1233,7 @@ class CatalogBuilder(object):
|
|||||||
else:
|
else:
|
||||||
# Validate custom field is usable as a genre source
|
# Validate custom field is usable as a genre source
|
||||||
field_md = self.db.metadata_for_field(self.opts.genre_source_field)
|
field_md = self.db.metadata_for_field(self.opts.genre_source_field)
|
||||||
if not field_md['datatype'] in ['enumeration', 'text']:
|
if field_md is None or not field_md['datatype'] in ['enumeration', 'text']:
|
||||||
all_custom_fields = self.db.custom_field_keys()
|
all_custom_fields = self.db.custom_field_keys()
|
||||||
eligible_custom_fields = []
|
eligible_custom_fields = []
|
||||||
for cf in all_custom_fields:
|
for cf in all_custom_fields:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user