Source

corenlp-python / corenlp.py

Diff from to

corenlp.py

 
     print 'Serving on http://%s:%s' % (options.host, options.port)
     # server.serve()
-    server.serve_forever()
+    try:
+        server.serve_forever()
+    except KeyboardInterrupt:
+        print >>stderr, "Bye."
+        exit()