Skip to content

Loading…

JS files are not recognized #1090

Closed
okossuth opened this Issue · 1 comment

2 participants

@okossuth

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
p.dispatch()
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:
https://groups.google.com/forum/?fromgroups=#!topic/boto-users/XZfEtlr8jcI

Is there a workaround for this?
thanks

@garnaat
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.