1async def application(scope, receive, send): 2 if scope['type'] != 'http': 3 raise Exception('Exception blah') 4