We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 803fa2b + 48e31db commit 0d4cabaCopy full SHA for 0d4caba
openeo/rest/job.py
@@ -376,8 +376,8 @@ def download(
376
target = target / self.name
377
ensure_dir(target.parent)
378
logger.info("Downloading Job result asset {n!r} from {h!s} to {t!s}".format(n=self.name, h=self.href, t=target))
379
+ response = self._get_response(stream=True)
380
with target.open("wb") as f:
- response = self._get_response(stream=True)
381
for block in response.iter_content(chunk_size=chunk_size):
382
f.write(block)
383
return target
0 commit comments