lib/hatchet/git_app.rb in heroku_hatchet-7.3.0 vs lib/hatchet/git_app.rb in heroku_hatchet-7.3.1
- old
+ new
@@ -7,17 +7,19 @@
def push_without_retry!
output = ""
ShellThrottle.new(platform_api: @platform_api).call do
- output = git_push_heroku_yall
- rescue FailedDeploy => e
- case e.output
- when /reached the API rate limit/, /429 Too Many Requests/
- throw(:throttle)
- else
- raise e unless @allow_failure
- output = e.output
+ begin
+ output = git_push_heroku_yall
+ rescue FailedDeploy => e
+ case e.output
+ when /reached the API rate limit/, /429 Too Many Requests/
+ throw(:throttle)
+ else
+ raise e unless @allow_failure
+ output = e.output
+ end
end
end
return output
end