Steps to reproduce:
We have an S3 bucket (which, if relevant, displays a created date in the AWS console) which we are simply trying to access via StorageCloud:
container = s3_storage.get_container("s3_bucket_name")
This throws an exception, which appears to be due to boto3 returning None for the creation_date attribute on the bucket:
File "C:\Users\xxx.xxx\.virtualenvs\xxx\lib\site-packages\cloudstorage\drivers\amazon.py", line 302, in get_container
return self._make_container(bucket)
File "C:\Users\xxx.xxx\.virtualenvs\xxx\lib\site-packages\cloudstorage\drivers\amazon.py", line 218, in _make_container
created_at = bucket.creation_date.astimezone(tz=None)
AttributeError: 'NoneType' object has no attribute 'astimezone'
Debugging and stepping into CloudStorage confirms the creation_date returned by boto3 is None.
Is it possible to handle this more gracefully, perhaps by just copying the None rather than assuming it's a valid DateTime?
Steps to reproduce:
We have an S3 bucket (which, if relevant, displays a created date in the AWS console) which we are simply trying to access via StorageCloud:
This throws an exception, which appears to be due to boto3 returning
Nonefor thecreation_dateattribute on the bucket:Debugging and stepping into CloudStorage confirms the
creation_datereturned by boto3 isNone.Is it possible to handle this more gracefully, perhaps by just copying the
Nonerather than assuming it's a validDateTime?