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

Avoid using deprecated flask.__version__ #365

Closed imjoehaines closed 9 months ago

imjoehaines commented 9 months ago

Goal

Flask is removing their __version__ attribute (see https://github.com/bugsnag/bugsnag-python/issues/364) so we can no longer rely on this to report the current Flask version

Instead we need to use importlib.metadata on Python 3.8+ or pkg_resources on older versions (partially reverting #362)