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
4dfdc420
Commit
4dfdc420
authored
Jan 04, 2016
by
Ross Jones
Browse files
Add logging so we are clear when we have skipped content
parent
fe069a7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckanext/archiver/tasks.py
View file @
4dfdc420
...
...
@@ -316,6 +316,7 @@ def download(context, resource, url_timeout=30,
if
'previous'
in
context
:
if
'etag'
in
res
.
headers
and
context
[
'previous'
].
etag
==
res
.
headers
[
'etag'
]:
log
.
info
(
"ETAG matches, not downloading content"
)
raise
NotChanged
(
"etag suggests content has not changed"
)
if
not
res
.
ok
:
# i.e. 404 or something
...
...
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