Skip to content

Commit 29b7725

Browse files
committed
Continue when blacklist is unavailable
1 parent f138748 commit 29b7725

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

modules/middleware/checkBlacklist.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ function checkBlacklist(req, res, next) {
1414
}
1515
},
1616
error => {
17-
console.error(error);
17+
console.error("Unable to fetch the blacklist: %s", error);
1818

19-
res.status(500).send({
20-
error: "Unable to fetch the blacklist"
21-
});
19+
// Continue anyway.
20+
next();
2221
}
2322
);
2423
}

0 commit comments

Comments
 (0)