Commit ed5830e7 authored by Ross Jones's avatar Ross Jones
Browse files

Better handling of no previous archival

parent 37fdd255
......@@ -314,7 +314,7 @@ def download(context, resource, url_timeout=30,
url_redirected_to = res.url if url != res.url else None
if context['previous']:
if 'previous' in context:
if 'etag' in res.headers and context['previous'].etag == res.headers['etag']:
raise NotChanged("etag suggests content has not changed")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment