We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c691f5c + 3302522 commit 3dc6abeCopy full SHA for 3dc6abe
1 file changed
BigStash/auth.py
@@ -32,8 +32,8 @@ def get_api_credentials(settings, username=None, password=None):
32
log.debug("error reading config file", exc_info=True)
33
print("No saved credentials found")
34
auth = BigStashAuth(settings=settings)
35
- r = auth.GetAPIKey(
36
- username or input("Username: "), password or getpass("Password: "))
+ r, _ = auth.GetAPIKey(username or input("Username: "),
+ password or getpass("Password: "))
37
if input("Save api key to settings? (y/N) ").lower() == "y":
38
settings.write_config_file(authfile, r)
39
k, s = (r['key'], r['secret'])
0 commit comments