Skip to content

Commit bf387dd

Browse files
author
lewzylu
committed
fix bugs
1 parent cd148b1 commit bf387dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

qcloud_cos/cos_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, Appid=None, Region=None, Secret_id=None, Secret_key=None, Tok
5555
if Scheme is None:
5656
Scheme = 'http'
5757
if(Scheme != 'http' and Scheme != 'https'):
58-
raise CosCosClientError('Scheme can be only set to http/https')
58+
raise CosClientError('Scheme can be only set to http/https')
5959
self._scheme = Scheme
6060

6161
# 兼容(SecretId,SecretKey)以及(AccessId,AccessKey)
@@ -1311,7 +1311,7 @@ def copy(self, Bucket, Key, CopySource, CopyStatus='Copy', PartSize=10, MAXThrea
13111311
abort_response = self.abort_multipart_upload(Bucket=Bucket, Key=Key, UploadId=uploadid)
13121312
raise e
13131313
return rt
1314-
1314+
13151315
def append_object(self, Bucket, Key, Position, Data, **kwargs):
13161316
"""文件块追加接口
13171317
@@ -1341,7 +1341,7 @@ def append_object(self, Bucket, Key, Position, Data, **kwargs):
13411341
headers=headers)
13421342
response = rt.headers
13431343
return response
1344-
1345-
1344+
1345+
13461346
if __name__ == "__main__":
13471347
pass

0 commit comments

Comments
 (0)