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) { ...@@ -31,7 +31,7 @@ module.exports.getBundesland = function(plz, cb) {
blnd = blndMapping[blnd]; blnd = blndMapping[blnd];
} }
catch(err) { catch(err) {
return cb(err); // return cb(err);
} }
if (blnd === undefined) if (blnd === undefined)
...@@ -48,7 +48,7 @@ module.exports.getKatholisch = function(plz, cb) { ...@@ -48,7 +48,7 @@ module.exports.getKatholisch = function(plz, cb) {
feiertag = result[0]["feiertag"]; feiertag = result[0]["feiertag"];
} }
catch (error) { catch (error) {
return cb(err); // return cb(err);
} }
if (feiertag === undefined) if (feiertag === undefined)
return cb(new Error("no entry found in religion table for plz " + plz)); 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