diff src/plugins/plugin_xep_0277.py @ 1542:94901070478e

plugins: added new MissingModule exceptions to plugins using third party modules
author Goffi <goffi@goffi.org>
date Wed, 30 Sep 2015 17:25:09 +0200
parents afa0894dcc71
children 2b8a975ff712
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py	Wed Sep 30 17:24:21 2015 +0200
+++ b/src/plugins/plugin_xep_0277.py	Wed Sep 30 17:25:09 2015 +0200
@@ -31,7 +31,10 @@
 
 # XXX: tmp.pubsub is actually use instead of wokkel version
 from wokkel import pubsub
-from feed.date import rfc3339
+try:
+    from feed.date import rfc3339
+except ImportError:
+    raise exceptions.MissingModule(u"Missing module pyfeed, please download/install it from http://home.avvanta.com/~steveha/pyfeed.html")
 import uuid
 import time
 import urlparse