Merge branch 'release_16.01' into release_16.04

This commit is contained in:
Nicola Soranzo
2017-09-06 18:06:07 +01:00
+3 -1
View File
@@ -32,8 +32,10 @@ log = logging.getLogger( __name__ )
# uwsgi-managed process.
try:
import uwsgi
if uwsgi.numproc:
if hasattr(uwsgi, "numproc"):
process_is_uwsgi = True
else:
process_is_uwsgi = False
except ImportError:
# This is not a uwsgi process, or something went horribly wrong.
process_is_uwsgi = False