Fix typo in hooks.py
TrivialFix Change-Id: Iff206110433b9cd76a1a2b7c6475267a9c7a568c
This commit is contained in:
@@ -114,6 +114,6 @@ class NoExceptionTracebackHook(hooks.PecanHook):
|
|||||||
faultstring = faultstring.split(traceback_marker, 1)[0]
|
faultstring = faultstring.split(traceback_marker, 1)[0]
|
||||||
# Remove trailing newlines and spaces if any.
|
# Remove trailing newlines and spaces if any.
|
||||||
json_body['faultstring'] = faultstring.rstrip()
|
json_body['faultstring'] = faultstring.rstrip()
|
||||||
# Replace the whole json. Cannot change original one beacause it's
|
# Replace the whole json. Cannot change original one because it's
|
||||||
# generated on the fly.
|
# generated on the fly.
|
||||||
state.response.json = json_body
|
state.response.json = json_body
|
||||||
|
|||||||
Reference in New Issue
Block a user