From ac8d987392ae416db18ebb930758de33cfe988e8 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Wed, 6 Nov 2013 18:10:09 +0100 Subject: [PATCH] don't monkeypatch if uwsgi is available --- isso/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/isso/__init__.py b/isso/__init__.py index 17e1f6a..db3981b 100644 --- a/isso/__init__.py +++ b/isso/__init__.py @@ -31,9 +31,12 @@ import pkg_resources dist = pkg_resources.get_distribution("isso") try: - import gevent.monkey; gevent.monkey.patch_all() + import uwsgi except ImportError: - pass + try: + import gevent.monkey; gevent.monkey.patch_all() + except ImportError: + pass import sys import os