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

Fix p* scripts to produce an error when given a bad config_uri #3766

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

kpinc
Copy link

@kpinc kpinc commented Aug 30, 2024

When a bad settings URI (usually a path to a non-existant file) is
supplied to one of pyramid's command line programs, and in general
when there is a reason why a settings file cannot be used, produce
an error message instead of a traceback.

Applications which import pyramid.paster must handle the
plaster.exceptions.PlasterError exception themselves.

@kpinc
Copy link
Author

kpinc commented Aug 31, 2024

I have changed the github workflow to get this to pass CI. This change is unrelated to the purpose of the patch. (macos-11 is no longer offered.)

@kpinc
Copy link
Author

kpinc commented Aug 31, 2024

To see what this fixes, try:pserve /tmp/nonexistantfile
You get a traceback without this patch.

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