Codebase list python-webargs / 369b323
Add a warning if validation errors are suppressed We can't be certain that the user doesn't know what they're doing in this case. It's conceivable that they have a validation hook which doesn't raise an error and they're prepared for `parse()` to return `None`. However, in that case, it would be beneficial to at least emit a warning, because this is likely to confuse users. resolves #518 Stephen Rosen 3 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
268268 error_status_code=error_status_code,
269269 error_headers=error_headers,
270270 )
271 warnings.warn(
272 "_on_validation_error hook did not raise an exception and flow "
273 "of control returned to parse(). You may get unexpected results"
274 )
271275 return data
272276
273277 def get_default_request(self):