mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 18:43:35 +02:00
...
This commit is contained in:
parent
b0de1e9633
commit
c420ec0463
1 changed files with 1 additions and 1 deletions
|
|
@ -1233,7 +1233,7 @@ def _normalize_tag(tag, max_len):
|
|||
else:
|
||||
# Validate custom field is usable as a genre source
|
||||
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()
|
||||
eligible_custom_fields = []
|
||||
for cf in all_custom_fields:
|
||||
|
|
|
|||
Loading…
Reference in a new issue