Commit 7a0fa403 authored by Adrien Dorsaz's avatar Adrien Dorsaz
Browse files

always return json as second argument of _send_signed_request

Indeed the Request module returns a JSON object and not a python
dictionary when we use Request.repsone.json().
parent 85fb9958
......@@ -88,7 +88,7 @@ def get_crt(config, log=LOGGER):
try:
return response, response.json()
except ValueError: # if body is empty or not JSON formatted
return response, json.dumps({})
return response, json.loads("{}")
# main code
adtheaders = {'User-Agent': 'acme-dns-tiny/2.2',
......
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