From f3191a213ff69c0b4396a033e849cd39d359c950 Mon Sep 17 00:00:00 2001 From: Rachel Wegener Date: Wed, 20 Dec 2023 16:04:16 +0000 Subject: [PATCH] fix local read auth requirement --- icepyx/core/read.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/icepyx/core/read.py b/icepyx/core/read.py index 69f532bc4..d4b4dccb6 100644 --- a/icepyx/core/read.py +++ b/icepyx/core/read.py @@ -415,7 +415,10 @@ def __init__( # If the path is an s3 path set the respective element of self.is_s3 to True if file_.startswith('s3'): self.is_s3[i] = True - product_dict[file_] = is2ref.extract_product(file_, auth=self.auth) + auth=self.auth + else: + auth=None + product_dict[file_] = is2ref.extract_product(file_, auth=auth) # Raise an error if there are both s3 and non-s3 paths present if len(set(self.is_s3)) > 1: