Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

catch async jsdom init errors

  • Loading branch information...
commit 0a9e1ba4b05b233a0bf8d9b4a252ae4e51e495a8 1 parent 5c9b996
@edrury edrury authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/crawler.js
View
7 lib/crawler.js
@@ -275,7 +275,12 @@ exports.Crawler = function(options) {
toQueue.callback(e);
release(toQueue);
} else {
- jsd([jq]);
+ try {
+ jsd([jq]);
+ } catch (e) {
+ toQueue.callback(e);
+ release(toQueue);
+ }
}
});
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.