Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap asgi application to ignore lifetime requests
ASGI servers send "lifetime" requests to django at startup and shutdown. The ASGI spec allows these to fail, in which case the server ignores them, however the way django fails them sends an exception to sentry which we don't want. Overwrite the handler to return a 501 error without throwing an exception
- Loading branch information