Skip to content

Commit

Permalink
only check status code for HTTP errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcgr committed Aug 18, 2023
1 parent f41bbbc commit 1fb0427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engines.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function create_default_engine(name::String; size::String="XS")
catch e
# If the status code is 409 then the engine already exists and we can wait for it
# to be ready
if e.status_code != 409
if !(e isa HTTPError) || e.status_code != 409
rethrow()
end
end
Expand Down

0 comments on commit 1fb0427

Please sign in to comment.