mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
Fix crash on broken links
This commit is contained in:
parent
318dcea39b
commit
e54feda878
1 changed files with 5 additions and 1 deletions
|
@ -89,7 +89,11 @@ function parse(msg, url, res, client) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetch(url, cb) {
|
function fetch(url, cb) {
|
||||||
|
try {
|
||||||
var req = request.get(url);
|
var req = request.get(url);
|
||||||
|
} catch(e) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var length = 0;
|
var length = 0;
|
||||||
var limit = 1024 * 10;
|
var limit = 1024 * 10;
|
||||||
req
|
req
|
||||||
|
|
Loading…
Reference in a new issue