Skip to content

Commit 9c8fd68

Browse files
committed
fix upload_file_from_buffer
1 parent df14224 commit 9c8fd68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

qcloud_cos/cos_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2492,6 +2492,8 @@ def upload_file_from_buffer(self, Bucket, Key, Body, MaxBufferSize=100, PartSize
24922492

24932493
lst = list() # 记录分块信息
24942494
MAXQueue = MaxBufferSize//PartSize
2495+
if MAXQueue == 0:
2496+
MAXQueue = 1
24952497
pool = SimpleThreadPool(MAXThread, MAXQueue)
24962498
while True:
24972499
if data == "":

0 commit comments

Comments
 (0)