diff --git a/lib/galaxy/config.py b/lib/galaxy/config.py index 264a22e216b..58f4addec10 100644 --- a/lib/galaxy/config.py +++ b/lib/galaxy/config.py @@ -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