Remove the rescue block, we have a decent error handler for API calls