Commit c2aa22f3 authored by kaiyou's avatar kaiyou

Fix a typo in the normalize hook

parent bc0c3063
Pipeline #163 passed with stage
in 58 seconds
......@@ -37,7 +37,7 @@ def normalize(context, result, success="message", error="message", up="up"):
if isinstance(result, Exception):
result = {up: False, error: str(result)}
elif not type(result) is dict:
result = {up: True, message: result}
result = {up: True, success: result}
return context, result
......
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