No description
Find a file
Edward Betts da83f0791d Fix OAuth User-Agent header and improve error handling
- Set User-Agent on OAuth1Session during token fetch and access token
  exchange so Wikimedia doesn't reject the requests with 403
- Extract handle_post() from article_page() for clarity
- Catch api.MediawikiError in get_best_hit() to skip bad API responses
  rather than crashing the page
- Catch mediawiki_api.APIError on save and return a 502 with the error
  text instead of a 500 traceback

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 18:11:23 +01:00
add_links Remove debugging output 2023-12-09 18:43:05 +00: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