Better error when not city

Stephen Paul Weber created

Instead of raw sql issue

Change summary

lib/bandwidth_tn_repo.rb | 2 ++
1 file changed, 2 insertions(+)

Detailed changes

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)