From: W. Trevor King Date: Fri, 5 Oct 2012 01:08:50 +0000 (-0400) Subject: Set default status to 200 (e.g. when loaded from a local file). X-Git-Tag: v3.0~72^2~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=73678fd108ef8cbc82928c9c2ef0fa9102d3c116;p=rss2email.git Set default status to 200 (e.g. when loaded from a local file). --- 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(