Skip to content

fix_cloudfront.py crash #1

Description

@davidpetersen

I just used this script and it was awesome... right up until it tried to traverse a deeper subdirectory structure. At which point it crashed with the following error message:

Traceback (most recent call last):
File "fix_cloudfront.py", line 87, in
sys.argv[2:] )
File "fix_cloudfront.py", line 61, in main
aggressive_headers = _get_aggressive_cache_headers(key)
File "fix_cloudfront.py", line 69, in _get_aggressive_cache_headers
metadata = key.metadata
AttributeError: 'NoneType' object has no attribute 'metadata'

I would love to submit a revised version of code, but alas, I don't speak python.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions