check specific status

Phillip Davis created

Change summary

lib/port_in_order.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

lib/port_in_order.rb 🔗

@@ -61,8 +61,8 @@ class PortInOrder
 			type: :error
 		)
 		true
-	rescue BandwidthIris::APIError
-		false
+	rescue BandwidthIris::Errors::GenericError => e
+		e.http_status != 404
 	end
 
 	def complete_with