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
Phillip Davis created
lib/port_in_order.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -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