diff --git a/src/client/classes/Datastore.js b/src/client/classes/Datastore.js index d219b27..bf0ce66 100644 --- a/src/client/classes/Datastore.js +++ b/src/client/classes/Datastore.js @@ -48,8 +48,11 @@ module.exports = class { } loadEntry(id){ - const json = require(`../../../datastore/` + id + '.json'); - this.map.set(id, json); + try { + const json = require(`../../../datastore/` + id + '.json'); + this.map.set(id, json); + } catch (error) { + } } getEntry(id){