From d26d1d621d39c5cc04c09fc8ecbe6af334db1d40 Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Wed, 24 Apr 2013 19:17:42 +0200 Subject: [PATCH] [RssNotify] Fix small bug --- rssnotify.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rssnotify.py b/rssnotify.py index 93d411e..9638a3e 100755 --- a/rssnotify.py +++ b/rssnotify.py @@ -89,7 +89,8 @@ def rsscheck(phenny, input): else: #phenny.say("GIT: %s commited to %s: %s %s %s" % (commiter,reponame,feed_entry.title,commit_hash,commit_time)) phenny.write(['PRIVMSG', ch],"GIT: %s commited to %s: %s %s %s %s" % (commiter, reponame, feed_entry.title, commit_hash, commit_time, commit_link)) - rssnotify["last_updated_feeds"][feednum] = to_unix_time(feed.entries[0].updated) + if len(feed.entries) > 0: + rssnotify["last_updated_feeds"][feednum] = to_unix_time(feed.entries[0].updated) print("[LOG]: Found %i RSS Update(s) for URL '%s'" % (updcnt, url)) end = time.time() if rssnotify["dont_print_first_message"]: