Skip to content

Commit

Permalink
Merge branch 'master' of github.com:longaccess/bigstash-python
Browse files Browse the repository at this point in the history
  • Loading branch information
kouk committed May 27, 2015
2 parents c691f5c + 3302522 commit 3dc6abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BigStash/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def get_api_credentials(settings, username=None, password=None):
log.debug("error reading config file", exc_info=True)
print("No saved credentials found")
auth = BigStashAuth(settings=settings)
r = auth.GetAPIKey(
username or input("Username: "), password or getpass("Password: "))
r, _ = auth.GetAPIKey(username or input("Username: "),
password or getpass("Password: "))
if input("Save api key to settings? (y/N) ").lower() == "y":
settings.write_config_file(authfile, r)
k, s = (r['key'], r['secret'])
Expand Down

0 comments on commit 3dc6abe

Please sign in to comment.