Mercurial > libervia-pubsub
diff idavoll/pubsub.py @ 102:f4d725a94202
Fix bug in how errors are handled in disco info request.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Sun, 02 Jan 2005 20:29:15 +0000 |
parents | b75fcc554358 |
children | d42327839888 |
line wrap: on
line diff
--- a/idavoll/pubsub.py Sun Jan 02 20:10:02 2005 +0000 +++ b/idavoll/pubsub.py Sun Jan 02 20:29:15 2005 +0000 @@ -139,9 +139,12 @@ return defer.succeed(info) else: - d = self.backend.get_node_type(node) - d.addCallback(self._add_identity, [], node) - d.addErrback(lambda _: []) + try: + d = self.backend.get_node_type(node) + d.addErrback(lambda _: []) + d.addCallback(self._add_identity, [], node) + except backend.NodeNotFound: + return defer.succeed([]) return d def _add_identity(self, node_type, result_list, node):