~jack/msrss

067c95ca8340a96c8374b9d4a5a6c47e4f779b78 — Jack Kelly 8 years ago bb2e44e
Guard against missing etag/modified.
1 files changed, 2 insertions(+), 2 deletions(-)

M msrss.in
M msrss.in => msrss.in +2 -2
@@ 66,8 66,8 @@ def load_feed(url, data_dir):
    etag = None
    modified = None
    if old_feed is not None:
        etag = old_feed.etag
        modified = old_feed.modified
        if hasattr(old_feed, 'etag'): etag = old_feed.etag
        if hasattr(old_feed, 'modified'): modified = old_feed.modified

    new_feed = feedparser.parse(url, etag=etag, modified=modified)
    if new_feed.status == 200 or new_feed.status == 302: