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
Reloader not handling syntax errors any more #1397
Comments
Thanks for testing the master branch! :) Looks like it was introduced in 64b26ef. Would you like to send a pull request? |
Here is a PR #1399 that fixes part of the issue |
@berkerpeksag can you check the PR and merge it if it's OK ? |
@brondsem how you change site-packages/gunicorn/workers/base.py to take affects of that fix?
|
@fahimeh2010 I installed directly from the pull request repo for testing purposes: |
I have reported the first part of this as a separate issue #1408 |
When running gunicorn 19.4.x with
--reload
it would trap any "bad" python errors likeSyntaxError
orIndentationError
and show them on the page. Very useful.But in 19.5 and 19.6 it doesn't serve the error message properly, shows an empty page and the logs have this error:
And in latest master (with
--reload poll
as it seems bare--reload
no longer works), it throws:The text was updated successfully, but these errors were encountered: