提交 ffdb36db 编写于 作者: M MRXLT

return error msg

上级 467623c2
......@@ -88,8 +88,8 @@ class WebService(object):
result = self.postprocess(
feed=request.json["feed"], fetch=fetch, fetch_map=fetch_map)
result = {"result": result}
except ValueError:
result = {"result": "Request Value Error"}
except ValueError, err:
result = {"result": err}
return result
def run_rpc_service(self):
......
......@@ -133,8 +133,8 @@ class WebService(object):
result = self.postprocess(
feed=request.json["feed"], fetch=fetch, fetch_map=fetch_map)
result = {"result": result}
except ValueError:
result = {"result": "Request Value Error"}
except ValueError, err:
result = {"result": err}
return result
def run_rpc_service(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册