From 73678fd108ef8cbc82928c9c2ef0fa9102d3c116 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 4 Oct 2012 21:08:50 -0400 Subject: [PATCH] Set default status to 200 (e.g. when loaded from a local file). --- rss2email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rss2email.py b/rss2email.py index 7fb39d1..7cee10d 100755 --- a/rss2email.py +++ b/rss2email.py @@ -813,7 +813,7 @@ class Feed (object): def _check_for_errors(self, parsed): warned = False - status = parsed.status + status = getattr(parsed, 'status', 200) LOG.debug('HTTP status {}'.format(status)) if status == 301: LOG.info('redirect {} from {} to {}'.format( -- 2.26.2