[16.01] Backport uwsgi fix from #2836.

Now that newer releases require a library that the mere presence of breaks an older version of Galaxy, I think this will be encountered more during development. It is breaking Planemo's ability to switch between different versions of Galaxy.

https://github.com/galaxyproject/galaxy/pull/2836
This commit is contained in:
John Chilton
2017-09-06 09:34:11 -04:00
parent 4c07734f57
commit 02c7792985
+3 -1
View File
@@ -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