diff --git a/bin/process_pending_btc_transactions b/bin/process_pending_btc_transactions index 964e0c5bda0ea32decbcff40f21bde8d467eaa82..2f7c73751dbef159cf5699d73a67a0d40ea3f6c5 100755 --- a/bin/process_pending_btc_transactions +++ b/bin/process_pending_btc_transactions @@ -172,7 +172,9 @@ class Customer def notify(body) jid = REDIS.get("jmp_customer_jid-#{@customer_id}") + raise "No JID for #{customer_id}" unless jid tel = REDIS.lindex("catapult_cred-#{jid}", 3) + return unless tel BlatherNotify.say( CONFIG[:notify_using][:target].call(tel.to_s), body