Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
fix/ ensure validate_address to return instance of AddressValidation
Browse files Browse the repository at this point in the history
This change will fix `no method error` in address#validation_response
Cause instance of Response::AddressValidation is expected
  • Loading branch information
Alexey Suslyakov committed Mar 8, 2018
1 parent f338d2b commit 5610c80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/tax_svc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def validate_address(address)
Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError => e
retry unless (tries -= 1).zero?
logger.error(e)
SpreeAvataxCertified::Response::AddressValidation.new('{}')
end

protected
Expand Down

0 comments on commit 5610c80

Please sign in to comment.