Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for origin (4.43 sec)

  1. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    ### Always `raise` in Dependencies with `yield` and `except`
    
    If you catch an exception in a dependency with `yield`, unless you are raising another `HTTPException` or similar, you should re-raise the original exception.
    
    You can re-raise the same exception using `raise`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="17"
        {!> ../../../docs_src/dependencies/tutorial008d_an_py39.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top