Commit 2207e7f8 authored by Dannon Baker's avatar Dannon Baker Committed by GitHub
Browse files

Merge pull request #4565 from jmchilton/backport_uwsgi_fix

[16.01] Backport uwsgi fix from #2836.
parents 4c07734f 02c77929
......@@ -29,8 +29,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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment