From 8696f4365c5d6bdd24d3ecb2472cf5c87711e3f3 Mon Sep 17 00:00:00 2001 From: Alice Fage Date: Tue, 30 Jan 2024 09:06:10 +1300 Subject: [PATCH] docs: update for nsk --- scripts/files/fs_s3.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/files/fs_s3.py b/scripts/files/fs_s3.py index ce21e1043..402e5e44b 100644 --- a/scripts/files/fs_s3.py +++ b/scripts/files/fs_s3.py @@ -90,6 +90,7 @@ def exists(path: str, needs_credentials: bool = False) -> bool: Raises: ce: ClientError nsb: NoSuchBucket + nsk: NoSuchKey Returns: True if the S3 Object exists @@ -111,8 +112,6 @@ def exists(path: str, needs_credentials: bool = False) -> bool: return True return False - # # load() fetch the metadata, not the data. Calls a `head` behind the scene. - # s3.Object(s3_path, key).load() s3_object = s3.Object(s3_path, key) s3_object.get()["ContentLength"] return True