Mercurial > libervia-backend
comparison frontends/src/jp/cmd_blog.py @ 1904:614f3abb2c69
plugin XEP-0060: fixed traceback if service was None
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 10 Mar 2016 17:50:17 +0100 |
parents | 116a55865364 |
children | e0bfdd379e8d |
comparison
equal
deleted
inserted
replaced
1903:29564cec913f | 1904:614f3abb2c69 |
---|---|
318 elif item_lower == 'last': | 318 elif item_lower == 'last': |
319 self.disp(u'Editing last published item', 2) | 319 self.disp(u'Editing last published item', 2) |
320 try: | 320 try: |
321 mb_data = self.host.bridge.mbGet('', '', 1, [], {}, self.profile)[0][0] | 321 mb_data = self.host.bridge.mbGet('', '', 1, [], {}, self.profile)[0][0] |
322 except Exception as e: | 322 except Exception as e: |
323 self.disp(u"Error while retrieving last comment: {}".format(e)) | 323 self.disp(u"Error while retrieving last item: {}".format(e)) |
324 self.host.quit(1) | 324 self.host.quit(1) |
325 | 325 |
326 content = mb_data['content_xhtml'] | 326 content = mb_data['content_xhtml'] |
327 if content and current_syntax != 'XHTML': | 327 if content and current_syntax != 'XHTML': |
328 content = self.host.bridge.syntaxConvert(content, 'XHTML', current_syntax, False, self.profile) | 328 content = self.host.bridge.syntaxConvert(content, 'XHTML', current_syntax, False, self.profile) |