From ec4427829174aa8e14a5aa4b81563ef311f46200 Mon Sep 17 00:00:00 2001 From: Jakob Date: Sat, 30 Nov 2019 18:11:57 -0600 Subject: [PATCH] Bug fix --- auth.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/auth.py b/auth.py index 6374b11..e27cbd7 100644 --- a/auth.py +++ b/auth.py @@ -278,13 +278,13 @@ class CookieAuthHandler(urllib.request.HTTPCookieProcessor): # Obfuscate password to prevent accidental discovery if {'username', 'password'} <= self.storage_mgr.keys(): - username = storage_mgr['username'] - password = decode(storage_mgr['password']) + username = self.storage_mgr['username'] + password = decode(self.storage_mgr['password']) else: username = self.ui.ask_username() password = self.ui.ask_password() - storage_mgr['username'] = username - storage_mgr['password'] = encode(password) + self.storage_mgr['username'] = username + self.storage_mgr['password'] = encode(password) url = self.bb_root.host + str(self.bb_root.path) with self.parent.open(url) as resp: -- 2.30.2