Better error handling on requests.get