Added a try-catch block and logging for when things go wrong with requests for local data.