fix for updates on pdns 4.0.0-rc2+ and remove flask.ext deprecation warnings

This commit is contained in:
CaptainQwark
2016-07-01 21:41:41 +02:00
parent e32186409a
commit 9db71eaef5
3 changed files with 9 additions and 6 deletions

View File

@ -64,6 +64,9 @@ def fetch_json(remote_url, method='GET', data=None, params=None, headers=None):
if method == "DELETE":
return True
if r.status_code == 204:
return {}
try:
assert('json' in r.headers['content-type'])
except Exception as e: