-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
5.7.0 console=False cause error with Flask #7310
Comments
You can't write to stdout in windowed mode because |
I've opened issue with |
thanks for your replay as for now, my solution is that creat class NullWriter and set sys.stdout and sys.stderr in my program
|
It's probably better to use |
That said, you really should not build any kind of web server with |
flask output server banner by echo() in click\utils.py
![image](https://user-images.githubusercontent.com/16237201/205954067-8cfe7540-6df9-42bd-8c62-decf0c82ffa4.png)
![image](https://user-images.githubusercontent.com/16237201/205954090-a2c50157-306f-4fc0-bcb2-c5881e625af2.png)
![image](https://user-images.githubusercontent.com/16237201/205954121-fa8be0a6-7434-4bf8-ab6c-052decb84144.png)
in 5.7.0, if console=False in spec, the param file in echo() will be None and cause error
![image](https://user-images.githubusercontent.com/16237201/205954521-1550e588-8f09-45bd-b6a8-2a6a598dd3f8.png)
5.6.2 works fine
The text was updated successfully, but these errors were encountered: