Put Response.json() calls inside try/except blocks