xref: /unit/test/python/lifespan/error/asgi.py (revision 1628:93e2931202bb)
1async def application(scope, receive, send):
2    if scope['type'] != 'http':
3        raise Exception('Exception blah')
4