Skip to content

Commit d84af53

Browse files
committed
fix lifecycle
1 parent 3c980ed commit d84af53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

qcloud_cos/cos_comm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ def check_object_content_length(data):
373373

374374
def format_dict(data, key_lst):
375375
"""转换返回dict中的可重复字段为list"""
376+
if not (isinstance(data, dict) and isinstance(key_lst, list)):
377+
return data
376378
for key in key_lst:
377379
# 将dict转为list,保持一致
378380
if key in data and isinstance(data[key], dict):

0 commit comments

Comments
 (0)