Commit f642c744 authored by huangziyu's avatar huangziyu

1

parent d51db783
...@@ -68,7 +68,7 @@ for row in url_data: ...@@ -68,7 +68,7 @@ for row in url_data:
if response_json != {}: if response_json != {}:
for sku_info in response_json['291']: for sku_info in response_json['291']:
shop_name = '' shop_name = ''
if 'shop_name' in sku_info['shop_link']: if 'shop_link' in sku_info and 'shop_name' in sku_info['shop_link']:
shop_name = sku_info['shop_link']['shop_name'] shop_name = sku_info['shop_link']['shop_name']
dataList.append( dataList.append(
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment