Skip to content

Pybrake raises depecration warnings with the FastAPI middleware #269

Description

@pouellet

Hi team,

Pybrake raises deprecation warnings when used with the FastAPI middleware:

pybrake/middleware/fastapi.py:1: DeprecationWarning: ExceptionMiddleware is deprecated on `starlette.exceptions`. Import it from `starlette.middleware.exceptions` instead.
    from .starlette import init_pybrake

pybrake/notifier.py:394: DeprecationWarning: Accessing attr.__version__ is deprecated and will be removed in a future release. Use importlib.metadata directly to query for attrs's packaging metadata.
    if hasattr(mod, "__version__"):

pybrake/notifier.py:395: DeprecationWarning: Accessing attr.__version__ is deprecated and will be removed in a future release. Use importlib.metadata directly to query for attrs's packaging metadata.
    versions[name] = mod.__version__

I am using the following versions:

Python 3.11.4

pybrake = "==1.10.1"
fastapi = "==0.100.0"
starlette = "==0.27.0"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions