Skip to content

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/oauth/services/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def paginate(self, url, **kwargs) -> Iterator[dict]:
212212
# ``create_session`` method since it could be used from outside, but
213213
# I didn't find a generic way to make a test request to each
214214
# provider.
215-
if resp.status_code == 401:
215+
if resp.status_code in [401, 403]:
216216
# Bad credentials: the token we have in our database is not
217217
# valid. Probably the user has revoked the access to our App. He
218218
# needs to reconnect his account

0 commit comments

Comments
 (0)