Re: [pylons-discuss] Is there a catch-all “predicate mismatch” view?

2019-08-08 Thread Michael Merickel
pyramid.exceptions.PredicateMismatch is a subclass of HTTPNotFound and thus a generic 404 handler (notfound_view_config) will catch it. You can define an exception_view_config specifically for PredicateMismatch if you wish to be more specific but most people would let it fall through to the 404

[pylons-discuss] Is there a catch-all “predicate mismatch” view?

2019-08-08 Thread Jens Troeger
Hello, During testing we just noticed that existing views whose predicate mismatched when making a request return an error like so: 404 Not Found The resource could not be found. predicate mismatch for view ... (request_method = POST) Is there a way to define a view that matches any and all