# HG changeset patch # User souliane # Date 1436885055 -7200 # Node ID 226bbe758b1a21041ad2b4180730a603d5efbb59 # Parent ea48663b26053368a61241f5080a5ccf5d7fc310 plugin misc_groupblog: pubsub response do not fail when target server doesn't handle RSM diff -r ea48663b2605 -r 226bbe758b1a src/plugins/plugin_misc_groupblog.py --- a/src/plugins/plugin_misc_groupblog.py Tue Jul 14 16:41:59 2015 +0200 +++ b/src/plugins/plugin_misc_groupblog.py Tue Jul 14 16:44:15 2015 +0200 @@ -508,7 +508,10 @@ - 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