Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MJU-POPS
ckanext-archiver
Commits
ed5830e7
Commit
ed5830e7
authored
Dec 24, 2015
by
Ross Jones
Browse files
Better handling of no previous archival
parent
37fdd255
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckanext/archiver/tasks.py
View file @
ed5830e7
...
...
@@ -314,7 +314,7 @@ def download(context, resource, url_timeout=30,
stream
=
True
)
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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment