Carl Chan 2024-12-27 17:24:24 -05:00
parent 4a93991fc6
commit 9dec0643e1
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}