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: ...@@ -109,7 +109,7 @@ class CachingMethod:
if obj.time + obj.duration < now: if obj.time + obj.duration < now:
# LOG('CachingMethod', 0, 'expire %s' % index) # LOG('CachingMethod', 0, 'expire %s' % index)
del CachingMethod.cached_object_dict[index] del CachingMethod.cached_object_dict[index]
except: except KeyError:
# This is necessary for multi-threading, because two threads can # This is necessary for multi-threading, because two threads can
# delete the same entry at a time. # delete the same entry at a time.
pass 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