mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #2101434 [KeyError: 11895 : when trying to open AUTHORS](https://bugs.launchpad.net/calibre/+bug/2101434)
This commit is contained in:
parent
ff9bcc93bf
commit
eda6dcb7e3
@ -222,7 +222,7 @@ class EditAuthorsDialog(QDialog, Ui_EditAuthorsDialog):
|
|||||||
name = v['name']
|
name = v['name']
|
||||||
name = name.replace('|', ',')
|
name = name.replace('|', ',')
|
||||||
self.completion_data.append(name)
|
self.completion_data.append(name)
|
||||||
vals = {'name': name, 'sort': v['sort'], 'link': v['link'], 'count':counts[id_]}
|
vals = {'name': name, 'sort': v['sort'], 'link': v['link'], 'count':counts.get(id_, 0)}
|
||||||
self.authors[id_] = vals
|
self.authors[id_] = vals
|
||||||
self.original_authors[id_] = vals.copy()
|
self.original_authors[id_] = vals.copy()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user