Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for size change instead of name for attachments already downloaded #1490

Merged
merged 6 commits into from
Sep 17, 2015

Conversation

Anaethelion
Copy link
Contributor

No description provided.

Anaethelion added a commit that referenced this pull request Sep 17, 2015
Check for size change instead of name for attachments already downloaded
@Anaethelion Anaethelion merged commit f450fa3 into GeotrekCE:master Sep 17, 2015
http = urllib2.urlopen(url)
size = http.headers.getheader('content-length')
return size == attachment.attachment_file.size
except:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Catch-all are bad

@leplatrem
Copy link
Contributor

Definitely would deserve tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants