From 3595d2656bf5ace80c8f0d9645a410936fe79666 Mon Sep 17 00:00:00 2001 From: souliane Date: Tue, 14 Jul 2015 16:44:15 +0200 Subject: [PATCH] plugin misc_groupblog: pubsub response do not fail when target server doesn't handle RSM --- src/plugins/plugin_misc_groupblog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/plugin_misc_groupblog.py b/src/plugins/plugin_misc_groupblog.py index 18cbba8a..dc7c0031 100755 --- a/src/plugins/plugin_misc_groupblog.py +++ b/src/plugins/plugin_misc_groupblog.py @@ -508,7 +508,10 @@ class GroupBlog(object): - couple (comments data, RSM response data for the comments) """ def comments_cb(comments_data, entry): - entry['comments_count'] = comments_data[1]['count'] + try: + entry['comments_count'] = comments_data[1]['count'] + except KeyError: # target pubsub server probably doesn't handle RSM + pass return (entry, comments_data) if max_ > 0 else entry assert max_ >= 0