Skip to content

functools.partial not supported #21

@dvarrazzo

Description

@dvarrazzo

Using a functools.partial() object in health() results in an error:

  File "/usr/local/lib/python3.10/site-packages/fastapi_health/route.py", line 40, in health
    f"{condition.__name__}",
AttributeError: 'functools.partial' object has no attribute '__name__'

you can use condition.func.__name__ instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions