Skip to content

Commit

Permalink
Make compatible with latest gevent version (#583)
Browse files Browse the repository at this point in the history
See https://github.com/gevent/gevent/blob/master/CHANGES.rst#13b2-2018-05-03
```
The long-deprecated and undocumented module gevent.wsgi was removed.
```
  • Loading branch information
jlewis91 authored and hjacobs committed May 14, 2018
1 parent 5bc8a78 commit 830711c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connexion/apps/flask_app.py
Expand Up @@ -106,10 +106,10 @@ def run(self, port=None, server=None, debug=None, host=None, **options): # prag
tornado.ioloop.IOLoop.instance().start()
elif self.server == 'gevent':
try:
import gevent.wsgi
import gevent.pywsgi
except ImportError:
raise Exception('gevent library not installed')
http_server = gevent.wsgi.WSGIServer((self.host, self.port), self.app, **options)
http_server = gevent.pywsgi.WSGIServer((self.host, self.port), self.app, **options)
logger.info('Listening on %s:%s..', self.host, self.port)
http_server.serve_forever()
else:
Expand Down

0 comments on commit 830711c

Please sign in to comment.