From 950fca40dd769164742ed0c9dd3f8ff9b932f9a6 Mon Sep 17 00:00:00 2001 From: Mads Bisgaard Date: Tue, 19 Sep 2023 10:27:51 +0200 Subject: [PATCH] minor fix according to pr feedback --- services/storage/src/simcore_service_storage/s3_client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/storage/src/simcore_service_storage/s3_client.py b/services/storage/src/simcore_service_storage/s3_client.py index 75b51516899..7d7ee834456 100644 --- a/services/storage/src/simcore_service_storage/s3_client.py +++ b/services/storage/src/simcore_service_storage/s3_client.py @@ -315,9 +315,7 @@ async def get_file_metadata( file_id=file_id, last_modified=response["LastModified"], e_tag=json.loads(response["ETag"]), - sha256_checksum=SHA256Str(response.get("ChecksumSHA256")) - if response.get("ChecksumSHA256") - else None, + sha256_checksum=response.get("ChecksumSHA256"), size=response["ContentLength"], )