X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/42f82c3712f7ce06ef6eab780c63ab3061d97b8d..9dd8549018d758eccc9768afb4049de2945d2616:/code/invirt.fcgi diff --git a/code/invirt.fcgi b/code/invirt.fcgi index 41d724a..7d6dc9c 100755 --- a/code/invirt.fcgi +++ b/code/invirt.fcgi @@ -64,7 +64,11 @@ if __name__ == "__main__": cherrypy.engine.start() cherrypy.engine.block() else: - cherrypy.engine.start(blocking=False) + try: + # Case that cherrypy < 3.1.0 + cherrypy.engine.start(blocking=False) + except TypeError: + cherrypy.engine.start() from flup.server.fcgi import WSGIServer server = WSGIServer(cherrypy.tree) server.run()