]> oss.titaniummirror.com Git - webber.git/commitdiff
rss_feed: moan about a missing python-pyrss2gen
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Tue, 22 Jun 2010 22:26:23 +0000 (00:26 +0200)
committerHolger Schurig <hs4233@mail.mn-solutions.de>
Tue, 22 Jun 2010 22:26:23 +0000 (00:26 +0200)
plugins/rss_feed.py

index 28b0efcc7346d79b322a90cab2e18bcca570e03f..3497c2ac5e1979d51518c511a0c4f6a25890953f 100644 (file)
@@ -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 = []