Mercurial > libervia-web
changeset 713:d75935e2b279
browser_side (blog): do not fail when target server doesn't handle RSM
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 15 Jul 2015 13:34:17 +0200 |
parents | bf562fb9c273 |
children | 03e9fe91081c |
files | src/browser/sat_browser/blog.py |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/browser/sat_browser/blog.py Mon Jul 13 18:11:38 2015 +0200 +++ b/src/browser/sat_browser/blog.py Wed Jul 15 13:34:17 2015 +0200 @@ -559,9 +559,12 @@ assert(len(hashes) < 2) # ensure the blogs come from the same node if len(hashes) == 1: main_entry = self.comments[hashes.pop()] - count = int(rsm['count']) - hidden = count - (int(rsm['index']) + len(mblogs)) - main_entry.updateHeader(count, hidden) + try: + count = int(rsm['count']) + hidden = count - (int(rsm['index']) + len(mblogs)) + main_entry.updateHeader(count, hidden) + except KeyError: # target pubsub server doesn't support RSM + pass def _chronoInsert(self, vpanel, entry, reverse=True): """ Insert an entry in chronological order