diff --git a/felt/core/s3_upload_parameters.py b/felt/core/s3_upload_parameters.py index 15ef7c9..62c574f 100644 --- a/felt/core/s3_upload_parameters.py +++ b/felt/core/s3_upload_parameters.py @@ -50,15 +50,20 @@ def from_json(res: str) -> 'S3UploadParameters': """ return S3UploadParameters( type=res.get('data', {}).get('type'), - aws_access_key_id=res.get('presigned_attributes', {}).get('AWSAccessKeyId'), + aws_access_key_id=res.get('presigned_attributes', {}) + .get('AWSAccessKeyId'), acl=res.get('presigned_attributes', {}).get('acl'), key=res.get('presigned_attributes', {}).get('key'), policy=res.get('presigned_attributes', {}).get('policy'), signature=res.get('presigned_attributes', {}).get('signature'), - success_action_status=res.get('presigned_attributes', {}).get('success_action_status'), - x_amz_meta_features_flags=res.get('presigned_attributes', {}).get('x-amz-meta-feature-flags'), - x_amz_meta_file_count=res.get('presigned_attributes', {}).get('x-amz-meta-file-count'), - x_amz_security_token=res.get('presigned_attributes', {}).get('x-amz-security-token'), + success_action_status=res.get('presigned_attributes', {}) + .get('success_action_status'), + x_amz_meta_features_flags=res.get('presigned_attributes', {}) + .get('x-amz-meta-feature-flags'), + x_amz_meta_file_count=res.get('presigned_attributes', {}) + .get('x-amz-meta-file-count'), + x_amz_security_token=res.get('presigned_attributes', {}) + .get('x-amz-security-token'), url=res.get('url'), layer_id=res.get('layer_id'), )