mirror of https://github.com/tiangolo/fastapi.git
call should be dependant.call
This commit is contained in:
parent
e29fb2c08d
commit
ba5867afb2
|
|
@ -556,7 +556,7 @@ async def _solve_generator(
|
|||
if str(ex) != "generator didn't yield":
|
||||
raise ex
|
||||
|
||||
dependency_name = getattr(call, "__name__", "(unknown)")
|
||||
dependency_name = getattr(dependant.call, "__name__", "(unknown)")
|
||||
raise FastAPIError(
|
||||
f"Dependency {dependency_name} raised: {ex}. There's a high chance that "
|
||||
"this is a dependency with yield that catches an exception using except, "
|
||||
|
|
|
|||
Loading…
Reference in New Issue