TanviReddy30 added a comment.
I was able to reproduce the issue locally. Found that the failure occurs in process_site() where the response from session.post() is immediately parsed with .json() without checking the HTTP status. When the API returns a 403 response, it leads to an uncaught JSONDecodeError. I’ll work on improving the error handling so HTTP failures are handled properly. TASK DETAIL https://phabricator.wikimedia.org/T417495 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
