- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for pattern (0.17 sec)
-
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
So, you can look for that specific exception inside the dependency with `except SomeException`. In the same way, you can use `finally` to make sure the exit steps are executed, no matter if there was an exception or not. ```Python hl_lines="3 5" {!../../../docs_src/dependencies/tutorial007.py!} ``` ## Sub-dependencies with `yield`
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)