Skip to content


JS files are not recognized #1090

okossuth opened this Issue · 1 comment

2 participants


Hi guys

I'm getting this error while trying to compute the md5 checksum of a JS file
stored on an s3 bucket:

Traceback (most recent call last):
File "./", line 252, in
File "/usr/lib/python2.7/site-packages/argh/", line 307, in dispatch
return dispatch(self, args, *kwargs)
File "/usr/lib/python2.7/site-packages/argh/", line 202, in dispatch
for line in lines:
File "/usr/lib/python2.7/site-packages/argh/", line 284, in _execute_command
for line in result:
File "/usr/lib/python2.7/site-packages/argh/", line 267, in _call
result = args.function(args)
File "./", line 231, in putonly
print k.etag
AttributeError: 'NoneType' object has no attribute 'etag'

the code:

k = bucket.get_key(z)
print k.etag
etag = k.etag[1:-1]

it works fine with other files like html, php, jpg, etc but not for js files.
i think its related to this issue:!topic/boto-users/XZfEtlr8jcI

Is there a workaround for this?

the boto project member

Duplicate of #1089

@garnaat garnaat closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.