diff --git a/lib/heroku/command.rb b/lib/heroku/command.rb
index <HASH>..<HASH> 100644
--- a/lib/heroku/command.rb
+++ b/lib/heroku/command.rb
@@ -181,12 +181,18 @@ module Heroku
       error extract_error(e.response.body) {
         e.response.body =~ /^([\w\s]+ not found).?$/ ? $1 : "Resource not found"
       }
-    rescue RestClient::Locked, Heroku::API::Errors::Locked => e
+    rescue Heroku::API::Errors::Locked => e
       app = e.response.headers[:x_confirmation_required]
       if confirm_command(app, extract_error(e.response.body))
         arguments << '--confirm' << app
         retry
       end
+    rescue RestClient::Locked => e
+      app = e.response.headers[:x_confirmation_required]
+      if confirm_command(app, extract_error(e.http_body))
+        arguments << '--confirm' << app
+        retry
+      end
     rescue RestClient::RequestTimeout, Heroku::API::Errors::Timeout
       error "API request timed out. Please try again, or contact support@heroku.com if this issue persists."
     rescue RestClient::RequestFailed => e
fix locked error handling to properly accomodate heroku.rb or restclient