Commit 5a78d69f authored by zhanglu's avatar zhanglu

Merge branch 'hotfix/NoneType' into 'master'

NoneType

See merge request !5
parents 600da6e3 7ae4bb25
......@@ -93,7 +93,7 @@ class Sensitive(object):
if not data or "detail" in data: # 程序出错啦
return
action = data["result"]["action"]
action = data.get("result", {}).get("action", 0)
if action == 0 or action == 1: # "通过"
return []
......
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