More tolerance on json.loads() in case the parsed value from the request context is not a string

This commit is contained in:
Fabio Manganiello 2018-12-03 23:04:23 +01:00
parent 4a148971b4
commit 791c36f5df
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class Request(Message):
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):