Skip to content

Commit

Permalink
Undo change to __delitem__.
Browse files Browse the repository at this point in the history
It does not really help.
  • Loading branch information
mauritsvanrees committed Mar 21, 2014
1 parent 71e2d47 commit 28273b0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plone/scale/storage.py
Expand Up @@ -94,12 +94,7 @@ def __delitem__(self, uid):
storage = self.storage
info = storage[uid]
key = info['key']
try:
del storage[key]
except KeyError:
# This key may easily have been removed already,
# especially when clearing the storage in one go.
pass
del storage[key]
del storage[uid]

def __iter__(self):
Expand Down

0 comments on commit 28273b0

Please sign in to comment.