children must be None on error

This commit is contained in:
meejah 2019-10-04 23:28:15 -06:00
parent 543a948d32
commit c4f49bb377

View File

@ -667,9 +667,8 @@ class DirectoryAsHTML(Element):
children = yield self.node.list() children = yield self.node.list()
except Exception as e: except Exception as e:
text, code = humanize_failure(Failure(e)) text, code = humanize_failure(Failure(e))
self.dirnode_children = None children = None
self.dirnode_children_error = text self.dirnode_children_error = text
children = {}
# XXX there was a big comment here about tail-recursion etc # XXX there was a big comment here about tail-recursion etc
# .. do we need to yield sometimes in this loop, or ..? (I'm # .. do we need to yield sometimes in this loop, or ..? (I'm