No description
Find a file
Edward Betts 95ca5f755d Fix User-Agent header, timeouts, and JSON error handling
mediawiki_oauth: set User-Agent on all OAuth1Session instances so
Wikimedia doesn't reject token and API requests with 403; add timeout
parameter to api_post_request (default 4s).

mediawiki_api: add APIError exception; wrap .json() in call() to raise
APIError with status code and response body on decode failure; raise
timeout to 30s for edit POSTs.

api: wrap call_get_diff .json() with the same JSONDecodeError guard,
raising MediawikiError with HTTP status and body on failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 18:11:23 +01:00
add_links Fix User-Agent header, timeouts, and JSON error handling 2026-05-09 18:11:23 +01:00
frontend Initial commit 2023-10-04 12:56:21 +01:00
static/css Move CSS out of template to static file 2023-11-25 19:56:25 +00:00
templates Rename article2.html to article.html 2023-11-26 14:13:51 +00:00
.gitignore Add static/bootstrap to .gitignore 2023-11-26 14:10:00 +00:00
add_front_end_libraries.py Initial commit 2023-10-04 12:56:21 +01:00
cmdline.py Tidy code for building list of examples 2023-12-09 18:43:56 +00:00
package.json Initial commit 2023-10-04 12:56:21 +01:00
vite.config.js Initial commit 2023-10-04 12:56:21 +01:00
web_view.py Fix OAuth User-Agent header and improve error handling 2026-05-09 18:11:23 +01:00