Skip to content

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

Open
kpinc wants to merge 6 commits into
Pylons:mainfrom
kpinc:settings_uri
Open

Fix p* scripts to produce an error when given a bad config_uri#3766
kpinc wants to merge 6 commits into
Pylons:mainfrom
kpinc:settings_uri

Conversation

@kpinc

@kpinc kpinc commented Aug 30, 2024

Copy link
Copy Markdown

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

kpinc commented Aug 31, 2024

Copy link
Copy Markdown
Author

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

kpinc commented Aug 31, 2024

Copy link
Copy Markdown
Author

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