mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix restore not to die when conflicting custom columns are encountered.
This commit is contained in:
parent
d8fc285b70
commit
abc1f7525c
@ -170,8 +170,8 @@ class Restore(Thread):
|
||||
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…
x
Reference in New Issue
Block a user