mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 05:00:18 +00:00
Catch errors inside loadEntry method in Datastore class
This commit is contained in:
parent
a7f3029be0
commit
53fda7c401
@ -48,8 +48,11 @@ module.exports = class {
|
||||
}
|
||||
|
||||
loadEntry(id){
|
||||
try {
|
||||
const json = require(`../../../datastore/` + id + '.json');
|
||||
this.map.set(id, json);
|
||||
} catch (error) {
|
||||
}
|
||||
}
|
||||
|
||||
getEntry(id){
|
||||
|
Loading…
Reference in New Issue
Block a user