Handle possible exception from requests.json()