[FIX] service: do not break on gevent 1.3
gevent 1.3.0 removed backward compatibility on gevent.wsgi. make the new path the default While the recommanded version on requirements.txt is 1.1, a server can not launched with the 1.3 Closes #24780 Fixes #24779
This commit is contained in:
@@ -356,7 +356,10 @@ class GeventServer(CommonServer):
|
||||
|
||||
def start(self):
|
||||
import gevent
|
||||
from gevent.wsgi import WSGIServer
|
||||
try:
|
||||
from gevent.pywsgi import WSGIServer
|
||||
except ImportError:
|
||||
from gevent.wsgi import WSGIServer
|
||||
|
||||
|
||||
if os.name == 'posix':
|
||||
|
||||
Reference in New Issue
Block a user