From: Holger Schurig Date: Tue, 22 Jun 2010 22:26:23 +0000 (+0200) Subject: rss_feed: moan about a missing python-pyrss2gen X-Git-Url: https://oss.titaniummirror.com/gitweb?p=webber.git;a=commitdiff_plain;h=94ceea8837b522ca907f5359126281f9cef7f5a0 rss_feed: moan about a missing python-pyrss2gen --- diff --git a/plugins/rss_feed.py b/plugins/rss_feed.py index 28b0efc..3497c2a 100644 --- a/plugins/rss_feed.py +++ b/plugins/rss_feed.py @@ -1,6 +1,11 @@ # -*- coding: iso-8859-1 -*- from webber import * -import os, datetime, PyRSS2Gen +import os, datetime +try: + import PyRSS2Gen +except ImportError: + print "rss_feed needs the python module PyRSS2Gen" + raise items = []