file_validation: don't crash when fargo messed up (#14224)

This commit is contained in:
Thomas NOËL 2016-12-07 14:27:50 +01:00
parent 87457ba861
commit f350397597
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def fargo_get(url):
response, status, data, auth_header = http_get_page(url)
if status == 200:
return json_loads(data)
return None
return {'err': 1}
def fargo_post_json(url, payload):