Fix typo in hooks.py

TrivialFix

Change-Id: Iff206110433b9cd76a1a2b7c6475267a9c7a568c
This commit is contained in:
zhangyanxian
2016-09-27 06:32:30 +00:00
parent a5b485ae29
commit 0f9361ee6c

View File

@@ -114,6 +114,6 @@ class NoExceptionTracebackHook(hooks.PecanHook):
faultstring = faultstring.split(traceback_marker, 1)[0]
# Remove trailing newlines and spaces if any.
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.
state.response.json = json_body