Skip to content

Don't modify Python warning filters #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

mick88
Copy link

@mick88 mick88 commented Jun 3, 2022

calls to filter and reset warnings have a global effect on projects using the library

calls to filter and reset warnings have a global effect on projects using the library
@mick88 mick88 changed the title Don't modify Python warnings Don't modify Python warning filters Jun 3, 2022
@mick88
Copy link
Author

mick88 commented Jun 3, 2022

I tried to configure warnings in my project and my configuration did not seem to have any effect.
It turns out that this project makes a call to reset warning filters that overrides my filters set at the start of the project.

stefantalpalaru added a commit to stefantalpalaru/django-pygments that referenced this pull request Nov 17, 2024
stefantalpalaru added a commit to stefantalpalaru/django-pygments that referenced this pull request Nov 17, 2024
@stefantalpalaru
Copy link

Fixed in my fork. Please make further PRs there: https://github.com/stefantalpalaru/django-pygments

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.

2 participants