diff --git a/webagg/responseloader.py b/webagg/responseloader.py index 55a51f30..ecda0723 100644 --- a/webagg/responseloader.py +++ b/webagg/responseloader.py @@ -208,7 +208,8 @@ class WARCPathLoader(BaseLoader): failed_files, local_index_query)) - if cdx.get('status', '').startswith('3'): + status = cdx.get('status') + if not status or status.startswith('3'): status_headers = self.headers_parser.parse(payload.stream) self.raise_on_self_redirect(params, cdx, status_headers.get_statuscode(),