Added error handling block when loading weather data