Skip to content
Snippets Groups Projects
Commit 3945b202 authored by echicken's avatar echicken
Browse files

Skip missing nodelist files

parent 25f3d2a4
Branches
Tags
No related merge requests found
......@@ -179,10 +179,11 @@ function populate_domain_tree(filename, tree, settings) {
function populate_tree(tree, settings) {
const ftn_domains = new FTNDomains();
Object.keys(ftn_domains.nodeListFN).forEach(function (e) {
if (!file_exists(ftn_domains.nodeListFN[e])) return;
populate_domain_tree(ftn_domains.nodeListFN[e], tree, settings);
});
Object.keys(settings).forEach(function (e) {
if (e.search(/^nodelist_/) > -1) {
if (e.search(/^nodelist_/) > -1 && file_exists(settings[e])) {
populate_domain_tree(settings[e], tree, settings);
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment