OpenGenova / L4A

GNU General Public License v3.0
2 stars 0 forks source link

rssNotifier fails to start (Ubuntu 18.04) #7

Open anaselli opened 6 years ago

anaselli commented 6 years ago

/usr/share/OpenGenova/scripts/rssNotifier.py ok - dom, 29 apr 2018 21:41:58 +0000 read update interval 60 Traceback (most recent call last): File "/usr/share/OpenGenova/scripts/rssNotifier.py", line 141, in n.run() File "/usr/share/OpenGenova/scripts/rssNotifier.py", line 63, in run self.loop() File "/usr/share/OpenGenova/scripts/rssNotifier.py", line 68, in loop self.checkAndNotify() File "/usr/share/OpenGenova/scripts/rssNotifier.py", line 95, in checkAndNotify if rss.status == 304: File "/usr/lib/python2.7/dist-packages/feedparser.py", line 408, in getattr raise AttributeError, "object has no attribute '%s'" % key AttributeError: object has no attribute 'status'

anaselli commented 6 years ago

if rss.status == 304: fails because the feed does not exist, in that case status is not rss attribute, a better check has to be added.