mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +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) {
|
||||
var req = request.get(url);
|
||||
try {
|
||||
var req = request.get(url);
|
||||
} catch(e) {
|
||||
return;
|
||||
}
|
||||
var length = 0;
|
||||
var limit = 1024 * 10;
|
||||
req
|
||||
|
|
Loading…
Reference in a new issue