Skip to content

Commit f3191a2

Browse files
committed
fix local read auth requirement
1 parent 861fb83 commit f3191a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: icepyx/core/read.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,10 @@ def __init__(
415415
# If the path is an s3 path set the respective element of self.is_s3 to True
416416
if file_.startswith('s3'):
417417
self.is_s3[i] = True
418-
product_dict[file_] = is2ref.extract_product(file_, auth=self.auth)
418+
auth=self.auth
419+
else:
420+
auth=None
421+
product_dict[file_] = is2ref.extract_product(file_, auth=auth)
419422

420423
# Raise an error if there are both s3 and non-s3 paths present
421424
if len(set(self.is_s3)) > 1:

0 commit comments

Comments
 (0)