We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c980ed commit d84af53Copy full SHA for d84af53
qcloud_cos/cos_comm.py
@@ -373,6 +373,8 @@ def check_object_content_length(data):
373
374
def format_dict(data, key_lst):
375
"""转换返回dict中的可重复字段为list"""
376
+ if not (isinstance(data, dict) and isinstance(key_lst, list)):
377
+ return data
378
for key in key_lst:
379
# 将dict转为list,保持一致
380
if key in data and isinstance(data[key], dict):
0 commit comments