housekeep: reformat asgi.py

This commit is contained in:
Leonidas Spyropoulos 2024-08-17 01:31:43 +01:00
parent 6c6ecd3971
commit 92f5bbd37f
No known key found for this signature in database
GPG key ID: 244740D17C7FD0EC

View file

@ -215,8 +215,12 @@ async def http_exception_handler(request: Request, exc: HTTPException) -> Respon
try:
pkgbase = get_pkg_or_base(matches.group(1))
context["pkgbase"] = pkgbase
context["git_clone_uri_anon"] = aurweb.config.get("options", "git_clone_uri_anon")
context["git_clone_uri_priv"] = aurweb.config.get("options", "git_clone_uri_priv")
context["git_clone_uri_anon"] = aurweb.config.get(
"options", "git_clone_uri_anon"
)
context["git_clone_uri_priv"] = aurweb.config.get(
"options", "git_clone_uri_priv"
)
except HTTPException:
pass