wmill 1.340.2__tar.gz → 1.341.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {wmill-1.340.2 → wmill-1.341.1}/PKG-INFO +1 -1
- {wmill-1.340.2 → wmill-1.341.1}/pyproject.toml +1 -1
- {wmill-1.340.2 → wmill-1.341.1}/wmill/client.py +2 -2
- {wmill-1.340.2 → wmill-1.341.1}/README.md +0 -0
- {wmill-1.340.2 → wmill-1.341.1}/wmill/__init__.py +0 -0
- {wmill-1.340.2 → wmill-1.341.1}/wmill/py.typed +0 -0
- {wmill-1.340.2 → wmill-1.341.1}/wmill/s3_reader.py +0 -0
- {wmill-1.340.2 → wmill-1.341.1}/wmill/s3_types.py +0 -0
@@ -440,7 +440,7 @@ class Windmill:
|
|
440
440
|
print(file_reader.read())
|
441
441
|
'''
|
442
442
|
"""
|
443
|
-
reader = S3BufferedReader(f"{self.workspace}", self.client, s3object["s3"], s3_resource_path, s3object["storage"])
|
443
|
+
reader = S3BufferedReader(f"{self.workspace}", self.client, s3object["s3"], s3_resource_path, s3object["storage"] if "storage" in s3object else None)
|
444
444
|
return reader
|
445
445
|
|
446
446
|
def write_s3_file(
|
@@ -479,7 +479,7 @@ class Windmill:
|
|
479
479
|
query_params["file_key"] = s3object["s3"]
|
480
480
|
if s3_resource_path is not None and s3_resource_path != "":
|
481
481
|
query_params["s3_resource_path"] = s3_resource_path
|
482
|
-
if s3object is not None and s3object["storage"] is not None:
|
482
|
+
if s3object is not None and "storage" in s3object and s3object["storage"] is not None:
|
483
483
|
query_params["storage"] = s3object["storage"]
|
484
484
|
|
485
485
|
try:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|