Commit 3cb00d56 authored by Johannes Bill's avatar Johannes Bill

fixed error on malformated cip codes

parent bcb28c1f
......@@ -31,7 +31,7 @@ module.exports.getBundesland = function(plz, cb) {
blnd = blndMapping[blnd];
}
catch(err) {
return cb(err);
// return cb(err);
}
if (blnd === undefined)
......@@ -48,7 +48,7 @@ module.exports.getKatholisch = function(plz, cb) {
feiertag = result[0]["feiertag"];
}
catch (error) {
return cb(err);
// return cb(err);
}
if (feiertag === undefined)
return cb(new Error("no entry found in religion table for plz " + plz));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment