changeset 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 9a8fbf0e8691
children 70988f08d0ad
files src/plugins/plugin_xep_0277.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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):