diff 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
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py	Thu Jun 20 12:37:06 2013 +0200
+++ b/src/plugins/plugin_xep_0277.py	Thu Jun 20 17:15:21 2013 +0200
@@ -105,7 +105,8 @@
                         microblog_data['comments_service'] = service.full()
                         microblog_data['comments_node'] = node
                         break
-                except (KeyError, exceptions.DataError):
+                except (KeyError, exceptions.DataError, RuntimeError):
+                    warning("Can't parse link")
                     continue
 
         except (AttributeError, KeyError):