Skip to content

Commit 578bc49

Browse files
committed
fix_tos
1 parent ad7cec2 commit 578bc49

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

veadk/integrations/ve_tos/ve_tos.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,7 @@ def build_tos_url(self, object_key: str, bucket_name: str = "") -> str:
243243
return tos_url
244244

245245
# deprecated
246-
def upload(self, data: Union[str, bytes], bucket_name: str, object_key: str):
247-
if not bucket_name:
248-
bucket_name = self.bucket_name
246+
def upload(self, data: Union[str, bytes], bucket_name: str = "", object_key: str = ""):
249247
if isinstance(data, str):
250248
# data is a file path
251249
return asyncio.to_thread(self.upload_file, data, bucket_name, object_key)

0 commit comments

Comments
 (0)