Commit ed769b35 by 柴鹏飞

修复部分画像字段为空导致的错误

parent db437f1c
......@@ -217,7 +217,10 @@ class AidiCstBiasPriceProfile(BaseProfile):
if pd.isnull(value):
return ret
json_object = json.loads(value)
try:
json_object = json.loads(value)
except Exception:
return ret
for v in json_object:
try:
......@@ -250,13 +253,16 @@ class MultiChoiceProfile(BaseProfile):
if pd.isnull(value):
return ret
value = json.loads(value)
try:
value = json.loads(value)
except Exception:
return ret
for v in value:
try:
i = self.option_dict[v]
ret[i] = 1
except Exception as e:
except Exception:
pass
return ret
......
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