Skip to content

Conversation

@talhakum
Copy link

@talhakum talhakum commented Dec 8, 2023

According to the Flask documentation, _app_ctx_stack.top and _request_ctx_stack.top are deprecated since 2.2.

This PR fixes below exception which occurs Flask version > 2.2.

    from flask import _app_ctx_stack as stack  # We do not support < Flask 0.9
ImportError: cannot import name '_app_ctx_stack' from 'flask' (/Users/talhakum/***/.venv/lib/python3.10/site-packages/flask/__init__.py)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant