comparison src/plugins/plugin_xep_0277.py @ 623:47d3a22b4629

plugin XEP-0277: RuntimeError is now catched during link parsing (can happen if no service jid is found)
author Goffi <goffi@goffi.org>
date Thu, 20 Jun 2013 17:15:21 +0200
parents 6f4c31192c7c
children 69a8bfd266a5
comparison
equal deleted inserted replaced
622:9a8fbf0e8691 623:47d3a22b4629
103 microblog_data['comments'] = link.attrs["href"] 103 microblog_data['comments'] = link.attrs["href"]
104 service, node = self.parseCommentUrl(microblog_data["comments"]) 104 service, node = self.parseCommentUrl(microblog_data["comments"])
105 microblog_data['comments_service'] = service.full() 105 microblog_data['comments_service'] = service.full()
106 microblog_data['comments_node'] = node 106 microblog_data['comments_node'] = node
107 break 107 break
108 except (KeyError, exceptions.DataError): 108 except (KeyError, exceptions.DataError, RuntimeError):
109 warning("Can't parse link")
109 continue 110 continue
110 111
111 except (AttributeError, KeyError): 112 except (AttributeError, KeyError):
112 error(_('Error while parsing atom entry for microblogging event')) 113 error(_('Error while parsing atom entry for microblogging event'))
113 return {} 114 return {}