lib/zold/commands/fetch.rb in zold-0.13.19 vs lib/zold/commands/fetch.rb in zold-0.13.20
- old
+ new
@@ -77,10 +77,10 @@
def fetch_one(id, r, cps, opts)
start = Time.now
if opts['ignore-node'].include?(r.to_s)
@log.debug("#{r} ignored because of --ignore-node")
- return false
+ return 0
end
res = r.http("/wallet/#{id}").get
raise "Wallet #{id} not found" if res.code == '404'
r.assert_code(200, res)
json = JSON.parse(res.body)