Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions veadk/integrations/ve_tos/ve_tos.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ def build_tos_url(self, object_key: str, bucket_name: str = "") -> str:
return tos_url

# deprecated
def upload(self, data: Union[str, bytes], bucket_name: str, object_key: str):
if not bucket_name:
bucket_name = self.bucket_name
def upload(
self, data: Union[str, bytes], bucket_name: str = "", object_key: str = ""
):
if isinstance(data, str):
# data is a file path
return asyncio.to_thread(self.upload_file, data, bucket_name, object_key)
Expand Down