Commit cd24d641 authored by 张鹏程's avatar 张鹏程

增加模型特征获取失败结果返回

parent c31c1459
Pipeline #915 failed with stages
......@@ -23,7 +23,7 @@ class AutomaticHandler(BaseHandler):
self.auto_feature = []
self.auto_dataset = {"data_basic":{"model_name":self.model_name,"count":self.user_count},
"data_detail":[]}
try :
url = 'http://172.21.10.25:9012/manage/features'
r = requests.post(url,data={'codes':self.model_name})
if r.status_code == 200:
......@@ -38,6 +38,14 @@ class AutomaticHandler(BaseHandler):
))
self.flush()
self.finish()
except:
self.write(JsonUtil.build_json_data(code=500,
message="特征列表获取失败",
result = [],
json_path = ''
))
self.flush()
self.finish()
else:
self.write(JsonUtil.build_json_data(code=JsonUtil.Constants.Code_Param_Error,
message=JsonUtil.Constants.Msg_Param_Error
......
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