More tolerance on json.loads() in case the parsed value from the request context is not a string
This commit is contained in:
parent
4a148971b4
commit
791c36f5df
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ class Request(Message):
|
||||||
value = ''
|
value = ''
|
||||||
|
|
||||||
try: return json.loads(parsed_value)
|
try: return json.loads(parsed_value)
|
||||||
except ValueError as e: return parsed_value
|
except Exception as e: return parsed_value
|
||||||
|
|
||||||
|
|
||||||
def _send_response(self, response):
|
def _send_response(self, response):
|
||||||
|
|
Loading…
Reference in a new issue