mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 22:33:15 +02:00
Fix restore not to die when conflicting custom columns are encountered.
This commit is contained in:
parent
d8fc285b70
commit
abc1f7525c
1 changed files with 2 additions and 2 deletions
|
|
@ -170,8 +170,8 @@ def create_cc_metadata(self):
|
|||
label = cfm['label']
|
||||
if label in m and args != m[label]:
|
||||
if label not in self.conflicting_custom_cols:
|
||||
self.conflicting_custom_cols[label] = set([m[label]])
|
||||
self.conflicting_custom_cols[label].add(args)
|
||||
self.conflicting_custom_cols[label] = []
|
||||
self.conflicting_custom_cols[label].append(args)
|
||||
m[cfm['label']] = args
|
||||
|
||||
db = RestoreDatabase(self.library_path)
|
||||
|
|
|
|||
Loading…
Reference in a new issue