Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed Jun 5, 2017
1 parent a216104 commit a8e62ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion models/provider/bitcore.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ function getAddress (address, callback) {
return callback(false, response)
}

var resp = JSON.parse(body)
try {
var resp = JSON.parse(body)
} catch (err) {
return callback(false)
}
var ret = {}
ret.btc_actual = resp.balance
ret.btc_unconfirmed = resp.balance + resp.unconfirmedBalance
Expand Down

0 comments on commit a8e62ba

Please sign in to comment.