From 33025225077c90f4f6bfe4a61a8b77b541197d6c Mon Sep 17 00:00:00 2001 From: Sofia Margariti Date: Wed, 27 May 2015 16:59:10 +0300 Subject: [PATCH] use only the first element of tuple for response --- BigStash/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BigStash/auth.py b/BigStash/auth.py index 7816c02..b6fb0c6 100644 --- a/BigStash/auth.py +++ b/BigStash/auth.py @@ -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'])