Commit 3e543bd0 by eqy Committed by Tianqi Chen

prevent starting of RPC server w/o RPC support (#962)

* prevent starting of RPC server w/o RPC support

* fix indent
parent 4392a6cf
......@@ -182,6 +182,11 @@ class Server(object):
use_popen=False,
exclusive=False,
key=""):
try:
if _ServerLoop is None:
raise RuntimeError("Please compile with USE_RPC=1")
except NameError:
raise RuntimeError("Please compile with USE_RPC=1")
self.host = host
self.port = port
self.libs = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment