From 218719cc3e1f0e6a0e01318ecd3382afd619bb8d Mon Sep 17 00:00:00 2001 From: Jakob Date: Mon, 2 Dec 2019 23:36:14 -0600 Subject: [PATCH] Bug fix --- auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth.py b/auth.py index 74ebd31..2b6552c 100644 --- a/auth.py +++ b/auth.py @@ -308,7 +308,8 @@ class CookieAuthHandler(urllib.request.HTTPCookieProcessor): with self.parent.open(req) as resp: resp.read() - if resp.url.endswith('/webapps/login'): + path = PurePosixPath(urllib.parse.urlparse(resp.url).path) + if path.match('*/webapps/login'): log('error', "Login failed. Are your credentials correct?") del self.storage_mgr['username'] del self.stoarge_mgr['password'] -- 2.30.2