Use .as_str_seq() instead of .get().

This commit is contained in:
David Logie 2019-01-25 17:11:15 +00:00
parent 1f356d66a6
commit 2ef74999ea

View file

@ -156,7 +156,7 @@ def apply_metadata(album_info, mapping):
'data_source',):
# Don't overwrite fields with empty values unless the
# field is explicitly allowed to be overwritten
clobber = field not in config['no_clobber'].get()
clobber = field not in config['no_clobber'].as_str_seq()
value = getattr(album_info, field)
if value is None and not clobber:
continue