Skip to content

Flask version parsing not compatible with prereleases #1095

@ThiefMaster

Description

@ThiefMaster
  File ".../env/lib/python3.9/site-packages/sentry_sdk/integrations/flask.py", line 71, in setup_once
    raise DidNotEnable("Unparsable Flask version: {}".format(FLASK_VERSION))
sentry_sdk.integrations.DidNotEnable: Unparsable Flask version: 2.0.0rc1

version = tuple(map(int, FLASK_VERSION.split(".")[:3]))

This assumes the version number only contains digits, so anything else that's valid in a Python version breaks the check.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions