Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Remove unnecessary usage of app_ctx_stack #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vincent-olivert-riera
Copy link

@vincent-olivert-riera vincent-olivert-riera commented Sep 19, 2022

This was only used to check if the application context exists, and if it didn't exist an exception was raised with an explanatory message.

Trying to access current_app._get_current_object() raises the same kind of exception with an equivalent explanatory message, therefore the usage of app_ctx_stack and the check around it was completely redundant.

Fixes issue #16
Requires PR #15

This was only used to check if the application context exists, and if it didn't
exist an exception was raised with an explanatory message.

Trying to access current_app._get_current_object() raises the same kind of
exception with an equivalent explanatory message, therefore the usage of
app_ctx_stack and the check around it was completely redundant.
@blockjon-dd
Copy link

I wish this would merge.. the warnings I'm getting are an annoyance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants