# HG changeset patch # User souliane # Date 1392730530 -3600 # Node ID 071524bfcc7df0d8a305e4da2b66503d3678a99a # Parent 59d486726577f5bc6489376edb3a08ae21221d4a plugin groupblog: do not log error message when asking for the entries of a non existent node (e.g the contact hasn't posted any message yet) diff -r 59d486726577 -r 071524bfcc7d src/plugins/plugin_misc_groupblog.py --- a/src/plugins/plugin_misc_groupblog.py Tue Feb 18 14:33:35 2014 +0100 +++ b/src/plugins/plugin_misc_groupblog.py Tue Feb 18 14:35:30 2014 +0100 @@ -625,7 +625,9 @@ d.addCallback(lambda gbdata, source_jid: (source_jid, gbdata), jid_.full()) mblogs.append(d) - dlist = defer.DeferredList(mblogs) + # consume the failure "StanzaError with condition u'item-not-found'" + # when the node doesn't exist (e.g that JID hasn't posted any message) + dlist = defer.DeferredList(mblogs, consumeErrors=True) dlist.addCallback(sendResult) return dlist @@ -682,7 +684,9 @@ d = self.host.plugins["XEP-0060"].subscribe(client.item_access_pubsub, self.getNodeName(jid_), profile_key=profile_key) mblogs.append(d) - dlist = defer.DeferredList(mblogs) + # consume the failure "StanzaError with condition u'item-not-found'" + # when the node doesn't exist (e.g that JID hasn't posted any message) + dlist = defer.DeferredList(mblogs, consumeErrors=True) return dlist #TODO: custom exception