diff --git a/apps/dsky_clock/app.js b/apps/dsky_clock/app.js index c68b8ce49..eb4854981 100644 --- a/apps/dsky_clock/app.js +++ b/apps/dsky_clock/app.js @@ -60,7 +60,12 @@ layout.update(); //support functions function getWeather() { - var weather = require("Storage").readJSON('weather.json', 1).weather; + var weather = {}; + try { + weather = require("Storage").readJSON('weather.json', 1).weather; + } catch(e) { + return {}; + } return weather; }