diff --git a/src/calibre/ebooks/metadata/opf3.py b/src/calibre/ebooks/metadata/opf3.py index 6e0ffd5b289d..dfcfcdf0af2f 100644 --- a/src/calibre/ebooks/metadata/opf3.py +++ b/src/calibre/ebooks/metadata/opf3.py @@ -425,7 +425,7 @@ def set_languages(root, prefixes, refines, languages): # Creator/Contributor {{{ -Author = namedtuple('Author', 'name sort seq') +Author = namedtuple('Author', 'name sort seq', defaults=(0,)) def is_relators_role(props, q):