lib/buildbox/agent.rb in buildbox-0.4.2 vs lib/buildbox/agent.rb in buildbox-0.5

- old
+ new

@@ -28,10 +28,10 @@ def next_build @api.agent(@access_token, :hostname => hostname, :version => Buildbox::VERSION) @api.next_build(@access_token) rescue Buildbox::API::AgentNotFoundError warn "Agent `#{@access_token}` does not exist" - [] # return empty array to avoid breakage + nil end def hostname `hostname`.chomp end