Closed mutantmonkey closed 3 years ago
It seems that import uwsgi only works when the app is being run by uWSGI and not via the flask command. To prevent breakage, we need to ensure that a failed import of the uwsgi module fails gracefully.
import uwsgi
flask
It seems that
import uwsgi
only works when the app is being run by uWSGI and not via theflask
command. To prevent breakage, we need to ensure that a failed import of the uwsgi module fails gracefully.