call should be dependant.call

This commit is contained in:
Jeremy Epstein 2025-11-11 10:46:22 +11:00
parent e29fb2c08d
commit ba5867afb2
1 changed files with 1 additions and 1 deletions

View File

@ -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, "