Skip to content

Commit 22a56a7

Browse files
authored
fix bug
1 parent 9fb840c commit 22a56a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qcloud_cos/cos_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def send_request(self, method, url, bucket, timeout=30, cos_request=True, **kwar
269269
logger.exception('url:%s, retry_time:%d exception:%s' % (url, j, str(e)))
270270
can_retry = False
271271
if 'data' in kwargs:
272-
body = kwargs[data]
272+
body = kwargs['data']
273273
if hasattr(body, 'tell') and hasattr(body, 'seek') and hasattr(body, 'read'):
274274
can_retry = True
275275
elif isinstance(body, text_type) or isinstance(body, binary_type):

0 commit comments

Comments
 (0)