Closed gtmanfred closed 9 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.
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.
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.1Describe alternatives you've considered
Additional context
https://github.com/pallets/flask/issues/5230