TanviReddy30 added a comment.
Submitted a patch to handle HTTP errors before parsing JSON: https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1239515 The change calls raise_for_status() before parsing the response to avoid the uncaught JSONDecodeError when a non-200 response is returned. If preferred, I can instead raise a RuntimeError including the response status and body for clearer debugging output. Thanks! 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]
