diff --git a/src/solid/auth.py b/src/solid/auth.py index 008daae..76b55f0 100644 --- a/src/solid/auth.py +++ b/src/solid/auth.py @@ -21,7 +21,9 @@ def login(self, idp, username, password): } r = self.client.post(url, data=data) - r.raise_for_status() + + if not r.is_redirect: + r.raise_for_status() if not self.is_login: raise Exception('Cannot login.')