From 0cbc5982e25d3f5daaf3e8bcdfdd86b988de4256 Mon Sep 17 00:00:00 2001 From: Jakob Date: Tue, 3 Dec 2019 23:21:56 -0600 Subject: [PATCH] Raise exception on bad login credentials --- auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.py b/auth.py index eecafd7..b99719d 100644 --- a/auth.py +++ b/auth.py @@ -318,9 +318,9 @@ class CookieAuthHandler(urllib.request.HTTPCookieProcessor): resp.read() if resp.status == 200: - log('error', "Login failed. Are your credentials correct?") del self.storage_mgr['username'] del self.storage_mgr['password'] + raise Exception("Login failed. Did you enter the correct credentials?") elif resp.status == 302: # success self.storage_mgr['username'] = username -- 2.30.2