Micro-optimization

This commit is contained in:
Kovid Goyal 2016-02-23 11:03:32 +05:30
parent 9e775f3cb7
commit 8bc8bfffff

View File

@ -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()