Replies: 1 comment
-
async def coro() -> None:
nonlocal app_exc
async with send_stream:
try:
await self.app(scope, receive_or_disconnect, send_no_error)
except Exception as exc:
app_exc = exc I find this exc not catch , why not raise exc here... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I use the BaseHTTPMiddleware middleware and add background tasks with BackgroundTasks, if the background task is missing a parameter, it does not raise an error. In fact, it should raise an exception.
Important
Beta Was this translation helpful? Give feedback.
All reactions