Skip to content

Commit

Permalink
'heroku accounts' shouldn't fail if no account is selected yet
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdowad committed Sep 23, 2011
1 parent 5894fa1 commit 49f8480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ext/heroku/command/accounts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Heroku::Command::Accounts < Heroku::Command::Base
def index
display "No accounts found." if account_names.empty?

current_account = Heroku::Auth.extract_account
current_account = Heroku::Auth.extract_account rescue nil

account_names.each do |name|
if name == current_account
Expand Down

0 comments on commit 49f8480

Please sign in to comment.