diff --git a/routes/weather.js b/routes/weather.js index bbbb451..714b6f6 100755 --- a/routes/weather.js +++ b/routes/weather.js @@ -58,6 +58,11 @@ function getOWMWeatherData( location, callback ) { return; } + if ( !weather.list ) { + callback(weather); + return; + } + var maxCount = 10; weather.temp = 0; weather.humidity = 0;