dirnode.py: dirnode.delete which hits UCWE should not fail with NoSuchChildError. Fixes #550.

This commit is contained in:
Brian Warner
2008-12-05 22:08:37 -07:00
parent fb9af2c7a0
commit 7a0afb59a4
2 changed files with 46 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class Deleter:
def modify(self, old_contents, servermap, first_time):
children = self.node._unpack_contents(old_contents)
if self.name not in children:
if self.must_exist:
if first_time and self.must_exist:
raise NoSuchChildError(self.name)
self.old_child = None
return None