未验证 提交 5a4f07eb 编写于 作者: J Jiawei Wang 提交者: GitHub

Merge pull request #741 from MRXLT/bug-fix

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