Skip to content
Snippets Groups Projects
Commit 3e543bd0 authored by eqy's avatar eqy Committed by Tianqi Chen
Browse files

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

* prevent starting of RPC server w/o RPC support

* fix indent
parent 4392a6cf
No related branches found
No related tags found
No related merge requests found
......@@ -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 = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment