mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-29 14:45:02 +01:00
Ignore errors when setting preferences in clean_user_categories
This commit is contained in:
parent
dab97fa3f1
commit
4fcb4fc42e
1 changed files with 4 additions and 1 deletions
|
|
@ -1195,7 +1195,10 @@ def clean_user_categories(self):
|
|||
i += 1
|
||||
else:
|
||||
new_cats['.'.join(comps)] = user_cats[k]
|
||||
self.prefs.set('user_categories', new_cats)
|
||||
try:
|
||||
self.prefs.set('user_categories', new_cats)
|
||||
except:
|
||||
pass
|
||||
return new_cats
|
||||
|
||||
def get_categories(self, sort='name', ids=None, icon_map=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue