mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Micro-optimization
This commit is contained in:
parent
9e775f3cb7
commit
8bc8bfffff
@ -1247,9 +1247,9 @@ class Cache(object):
|
|||||||
if path_changed:
|
if path_changed:
|
||||||
self._update_path({book_id})
|
self._update_path({book_id})
|
||||||
|
|
||||||
def protected_set_field(name, val, **kwargs):
|
def protected_set_field(name, val):
|
||||||
try:
|
try:
|
||||||
set_field(name, val, **kwargs)
|
set_field(name, val)
|
||||||
except:
|
except:
|
||||||
if ignore_errors:
|
if ignore_errors:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user