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"]: