Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Vaughn (0.21 sec)

  1. tests/test_ws_router.py

        """
        Verify that a validation in a dependency invokes the correct exception handler
        """
        caught = []
    
        @websocket_middleware
        async def catcher(websocket, call_next):
            try:
                return await call_next()
            except Exception as e:  # pragma: no cover
                caught.append(e)
                raise
    
        myapp = make_app(middleware=[Middleware(catcher)])
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 7.5K bytes
    - Viewed (0)
Back to top