JS files are not recognized #1090

okossuth opened this Issue Oct 29, 2012 · 1 comment


None yet
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 "./s3aws-static.py", line 252, in
File "/usr/lib/python2.7/site-packages/argh/helpers.py", line 307, in dispatch
return dispatch(self, _args, *_kwargs)
File "/usr/lib/python2.7/site-packages/argh/helpers.py", line 202, in dispatch
for line in lines:
File "/usr/lib/python2.7/site-packages/argh/helpers.py", line 284, in _execute_command
for line in result:
File "/usr/lib/python2.7/site-packages/argh/helpers.py", line 267, in _call
result = args.function(args)
File "./s3aws-static.py", 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:

Is there a workaround for this?


This comment has been minimized.

Show comment
Hide comment

garnaat Oct 31, 2012


Duplicate of #1089


garnaat commented Oct 31, 2012

Duplicate of #1089

@garnaat garnaat closed this Oct 31, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment