Commit a05d29bc authored by Kostas Vogias's avatar Kostas Vogias Committed by Stavros Sachtouris

Handle non-json responses in a less fault tolerant way

parent e0ad2e52
......@@ -102,10 +102,10 @@ def call_kamaki(environ, start_response, *args, **kwargs):
r = method(*args, **kwargs)
code, status, headers = r.status_code, r.status, r.headers
try:
body = None
if r.content:
body = _stringify_json_values(r.json)
except ClientError:
body = None
bodystr = ''
if body is not None:
......
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