iris doesn't use promises

Stephen Paul Weber created

Change summary

lib/bandwidth_tn_repo.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Detailed changes

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)