Skip to content
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

Stop swallowing all exceptions in settings.py #256

Closed
wants to merge 1 commit into from
Closed

Stop swallowing all exceptions in settings.py #256

wants to merge 1 commit into from

Conversation

jeffwidman
Copy link
Contributor

@jeffwidman jeffwidman commented May 18, 2017

Stop swallowing all exceptions in settings.py.

This is a broader swath than the original issue which only discussed removing the bare try/except from load_config(). However, I can envision the same type of problem happening in save_config() resulting in someone being confused why their configs aren't being saved.

Likely we'll need to explicitly catch a handful of exceptions, but at this point we're not sure which ones they are.

I'm also very open to reworking this to only remove the one try/except clause, but I figured might as well start the conversation by trying to fix all the things... 😄

Fix #139

Stop swallowing all exceptions. Likely we'll need to explicitly catch a handful of exceptions, but at this point we're not sure which ones they are.

Fix #139
@jeffwidman jeffwidman changed the title Stop swallowing all exceptions Stop swallowing all exceptions in settings.py May 18, 2017
@inducer
Copy link
Owner

inducer commented May 19, 2017

Thanks for your contribution! The tests failed--could you take a look?

@jeffwidman
Copy link
Contributor Author

jeffwidman commented May 19, 2017

Yeah, I saw that. I definitely will fix, although probably won't have time until next week after pycon.

Base automatically changed from master to main March 8, 2021 02:14
@mvanderkamp
Copy link
Contributor

I think this can be closed- the exceptions are being logged now.

@inducer
Copy link
Owner

inducer commented Jun 22, 2021

Agreed, thanks!

@inducer inducer closed this Jun 22, 2021
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.

"Edit preferences" comes up every time I use pdb
3 participants