Skip to content

Commit 9cdd851

Browse files
authored
fix: tos upload (#193)
1 parent 7bb7355 commit 9cdd851

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

veadk/integrations/ve_tos/ve_tos.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ 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(
247+
self, data: Union[str, bytes], bucket_name: str = "", object_key: str = ""
248+
):
249249
if isinstance(data, str):
250250
# data is a file path
251251
return asyncio.to_thread(self.upload_file, data, bucket_name, object_key)

0 commit comments

Comments
 (0)