sanic-org / sanic

Accelerate your web app development | Build fast. Run fast.

Home Page:https://sanic.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SERVER_EXCEPTION_REPORT signal handler does not get passed app positional, docs discrepancy

dhensen opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Docs say that Event.SERVER_EXCEPTION_REPORT/server.exception.report added in 23.6 get app and exception, but I only get exception:

image

Which, according to you, is wrong? The docs or the code?

Code snippet

No response

Expected Behavior

No response

How do you run Sanic?

Sanic CLI

Operating System

Linux

Sanic Version

23.6

Additional context

No response

The docs. I don't think the app is generally passed to any signal. We can probably talk about adding that though.

I could have know the docs are wrong because the code is the truth 😃
For what it's worth: I don't need the app, I just copy pasted app + exception from docs into my function.