lib/buildbox/worker.rb in buildbox-0.2 vs lib/buildbox/worker.rb in buildbox-0.2.1

- old
+ new

@@ -21,10 +21,10 @@ end private def projects - @api.worker(:access_token => @access_token, :hostname => hostname).projects + @api.worker(@access_token, hostname).projects rescue Faraday::Error::ClientError warn "Worker #{@access_token} doesn't exist" [] # return empty array to avoid breakage end