Update backend configuration and documentation

- Modified main.py with backend updates
- Updated Tasks.md documentation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-04-30 20:10:57 +02:00
parent 9afdbe2852
commit ac53a56ae7
2 changed files with 1 additions and 38 deletions

View File

@@ -12,6 +12,7 @@ on ``app.state`` throughout the request lifecycle.
from __future__ import annotations
import logging
import re
import sys
from contextlib import asynccontextmanager
from typing import TYPE_CHECKING
@@ -196,7 +197,6 @@ def _get_error_code(exc: Exception) -> str:
return exc.error_code
exc_name = exc.__class__.__name__
import re
snake_case = re.sub(r"(?<!^)(?=[A-Z])", "_", exc_name).lower()
return snake_case