bugsnag / bugsnag-python

Official BugSnag error monitoring and error reporting for django, flask, tornado and other python apps.
https://docs.bugsnag.com/platforms/python/
MIT License
84 stars 42 forks source link

Flask is removing __version__ #364

Closed gtmanfred closed 9 months ago

gtmanfred commented 10 months ago

Description

Flask is removing the __version__ attribute.

Describe the solution you'd like

https://github.com/bugsnag/bugsnag-python/blob/master/bugsnag/flask/__init__.py#L40

This needs to be replaced with importlib.metadata.version("flask") starting with flask 3.1

Describe alternatives you've considered

Additional context

https://github.com/pallets/flask/issues/5230

mclack commented 10 months ago

Hi @gtmanfred

Thanks for highlighting this to us. We will look to address this as soon as we can, and will post any updates here.

mclack commented 9 months ago

Hi @gtmanfred

v4.6.1 of bugsnag-python has now been released, which avoids using the deprecated flask.__version__ attribute.

Thank you for making us aware of this. I will now close this issue as completed.