Comparing version 0.0.1 to 0.0.2
@@ -61,4 +61,9 @@ var cheerio = require("cheerio") | ||
} | ||
request(url, function (err, res, body) { | ||
var api_json = JSON.parse(body); | ||
request(url, function (err, res, body) { | ||
try{ | ||
var api_json = JSON.parse(body); | ||
} catch (err) { | ||
callback("impurge: JSON parsing error"); | ||
} | ||
for (var type in api_json){ | ||
@@ -65,0 +70,0 @@ //console.log(type) |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"engines": { | ||
@@ -12,0 +12,0 @@ "node": "0.8.x" |
3967
109