diff --git a/lib/runner/strategy/poseidon.rb b/lib/runner/strategy/poseidon.rb index 1f222a5b..c88fc1b0 100644 --- a/lib/runner/strategy/poseidon.rb +++ b/lib/runner/strategy/poseidon.rb @@ -29,9 +29,9 @@ class Runner::Strategy::Poseidon < Runner::Strategy response_body = parse response if response_body.key? :executionEnvironments - raise(Runner::Error::UnexpectedResponse.new("Could not get the list of execution environments in Poseidon, got response: #{response.as_json}")) - else response_body[:executionEnvironments] || [] + else + raise(Runner::Error::UnexpectedResponse.new("Could not get the list of execution environments in Poseidon, got response: #{response.as_json}")) end else handle_error response