mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix for #8266: exception when book has no author.
This commit is contained in:
parent
6349979ca5
commit
8ef2b18e51
@ -99,7 +99,7 @@ class AumSortedConcatenate(object):
|
||||
def finalize(self):
|
||||
keys = self.ans.keys()
|
||||
if len(keys) == 0:
|
||||
return None
|
||||
return 'Unknown:::Unknown'
|
||||
if len(keys) == 1:
|
||||
return self.ans[keys[0]]
|
||||
return ':#:'.join([self.ans[v] for v in sorted(keys)])
|
||||
|
Loading…
x
Reference in New Issue
Block a user