Skip to content

Commit

Permalink
add consent hint
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Feb 25, 2025
1 parent 29ef4d3 commit 86191cc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def do_web_auth(self, url: str) -> str:
raise RetrievalError('Temporary server error during login')

if 'Location' not in response.headers:
if 'consent' in url:
raise AuthenticationError('Could not find Location in headers, probably due to missing consent. Try visiting: ' + url)
raise APICompatibilityError('Forwarding without Location in headers')

url = response.headers['Location']
Expand Down

0 comments on commit 86191cc

Please sign in to comment.