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)