Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Nov 28, 2023
1 parent 8a2b8e0 commit 1f34492
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion official/guides/errors-guide/golang/catch-error.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ func main() {
},
)

fmt.Println(err.Code)
if err, ok := err.(*easypost.APIError); ok {
fmt.Println(err.Code)
}
}
1 change: 0 additions & 1 deletion official/guides/errors-guide/python/catch-error.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import easypost


try:
easypost.Address.create({"strict_verify": True})
except easypost.errors.api.ApiError as error:
Expand Down
4 changes: 2 additions & 2 deletions official/guides/errors-guide/ruby/catch-error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

begin
Address.create({}, strict_verify: true)
rescue EasyPost::Errors::ApiError => error
p error.code
rescue EasyPost::Errors::ApiError => e
p e.code
end

0 comments on commit 1f34492

Please sign in to comment.