From 89461ddbf4e5b8bf194bb912cc51b84dd0f358c5 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 2 Jun 2025 14:14:00 -0500 Subject: [PATCH] Better error when not city Instead of raw sql issue --- lib/bandwidth_tn_repo.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bandwidth_tn_repo.rb b/lib/bandwidth_tn_repo.rb index bf2aeb109433ceaf8c148e2ca7d7d1653efe8a09..afd7b9b50a83352fe7d877d97bd8a3693aa64759 100644 --- a/lib/bandwidth_tn_repo.rb +++ b/lib/bandwidth_tn_repo.rb @@ -49,6 +49,8 @@ class BandwidthTnRepo def stash_for_later(tel, btn) details = btn.get_rate_center region = details[:state] + raise "No city in: #{details.inspect}" unless details[:city] + locality = details[:city] params = [tel, region, locality, CONFIG[:creds][:account]] DB.exec(STASH_QUERY, params)