diff --git a/lib/bandwidth_tn_repo.rb b/lib/bandwidth_tn_repo.rb index e5d2e7df34c8223649624833c999d028bab2ba13..43611bcd9c245055a9a08808a659f7770ff25cff 100644 --- a/lib/bandwidth_tn_repo.rb +++ b/lib/bandwidth_tn_repo.rb @@ -13,7 +13,9 @@ class BandwidthTnRepo end def find(tel) - BandwidthIris::Tn.new(telephone_number: tel).get_details.catch { {} } + BandwidthIris::Tn.new(telephone_number: tel).get_details + rescue StandardError + {} end def put_lidb_name(tel, lidb_name)