Updated route dispatch to properly handle aiohttp HTTP exceptions.
CI / Formatting (push) Successful in 21s
CI / Linting (push) Successful in 4s
CI / Tests (Python 3.12) (push) Successful in 2m53s
CI / Tests (Python 3.13) (push) Successful in 2m52s
CI / Tests (Python 3.14) (push) Successful in 2m42s
CI / Type Checking (push) Successful in 9s
CI / Spelling (push) Successful in 5s

This commit is contained in:
2026-04-27 15:34:51 -04:00
parent 9b6151e7e6
commit b2688b7934
5 changed files with 50 additions and 6 deletions
+2 -1
View File
@@ -620,7 +620,8 @@ class RouteDispatcher:
type(result).__name__,
)
return web.Response(status=500)
except web.HTTPException as exc:
return exc
except TimeoutError:
mod_logger.warning(
"Route handler '%s' timed out after %ss.",