view Feed.py @ 10:01a86b178e60

catch the FeedUpdateException that might be raised when updating a feed, print it and continue with next feed
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 27 Apr 2010 20:08:21 +0200
parents 215c34f61e95
children 3ffecc709da9
line wrap: on
line source


class Feed(object):
    def __init__(self, title, rss_url):
        self.title = title
        self.rss_url = rss_url

    def __repr__(self):
        return "<Feed (%d) %s>" % (self.pk, self.title)