Skip to content

Commit 9dec064

Browse files
committed
1 parent 4a93991 commit 9dec064

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/dsky_clock/app.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ layout.update();
6060
//support functions
6161

6262
function getWeather() {
63-
var weather = require("Storage").readJSON('weather.json', 1).weather;
63+
var weather = {};
64+
try {
65+
weather = require("Storage").readJSON('weather.json', 1).weather;
66+
} catch(e) {
67+
return {};
68+
}
6469
return weather;
6570
}
6671

0 commit comments

Comments
 (0)