Skip to content

Commit 344f56f

Browse files
authored
chore: Fix missing import in earthdata.py example (#626)
1 parent 01d5a2c commit 344f56f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

obstore/python/obstore/auth/earthdata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class NasaEarthdataCredentialProvider:
8484
8585
# Download the file by streaming chunks
8686
try:
87-
result = obstore.get(store, filename)
87+
result = store.get(filename)
8888
with open(filename, "wb") as f:
8989
for chunk in iter(result):
9090
f.write(chunk)
@@ -275,7 +275,7 @@ class NasaEarthdataAsyncCredentialProvider:
275275
276276
# Download the file by streaming chunks
277277
try:
278-
result = await obstore.get_async(store, filename)
278+
result = await store.get(filename)
279279
with open(filename, "wb") as f:
280280
async for chunk in aiter(result):
281281
f.write(chunk)

0 commit comments

Comments
 (0)