X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/04fa949d023fdb3e9fc623cf6c5aa3d620ff1ca3..47b9cb0d87524e6598da025f3c49cd013f00606b:/code/invirt.fcgi?ds=inline diff --git a/code/invirt.fcgi b/code/invirt.fcgi index 41d724a..ded6b68 100755 --- a/code/invirt.fcgi +++ b/code/invirt.fcgi @@ -64,7 +64,12 @@ if __name__ == "__main__": cherrypy.engine.start() cherrypy.engine.block() else: - cherrypy.engine.start(blocking=False) + cherrypy.server.unsubscribe() + 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()