fix exception in case gevent not installed