diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index 9b85b10d1c..da8140a4f0 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -79,10 +79,12 @@ module Homebrew end end - if formulae_and_casks.present? - handle_formula_and_casks(formulae_and_casks, args) - else - handle_api_response(args) + Homebrew.with_no_api_env do + if formulae_and_casks.present? + handle_formula_and_casks(formulae_and_casks, args) + else + handle_api_response(args) + end end end