Commit c4487756 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Catch only KeyError.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3046 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 82a731e6
......@@ -109,7 +109,7 @@ class CachingMethod:
if obj.time + obj.duration < now:
# LOG('CachingMethod', 0, 'expire %s' % index)
del CachingMethod.cached_object_dict[index]
except:
except KeyError:
# This is necessary for multi-threading, because two threads can
# delete the same entry at a time.
pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment