pre-commit-ci-lite[bot]
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
fastapi/dependencies/utils.py
|
|
|
@ -572,7 +572,7 @@ async def _solve_generator( |
|
|
|
cm = asynccontextmanager(dependant.call)(**sub_values) |
|
|
|
elif dependant.is_gen_callable: |
|
|
|
cm = contextmanager_in_threadpool(contextmanager(dependant.call)(**sub_values)) |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
solved = await stack.enter_async_context(cm) |
|
|
|
except RuntimeError as ex: |
|
|
|
|