Missing sys import
Also put the error message in sys.exit rather than printing. This will output it to stderr and make the exit code non-zero like it should be.
This commit is contained in:
parent
47ae32a900
commit
876a2c8ed0
@ -21,8 +21,8 @@ from collections import defaultdict
|
||||
try:
|
||||
from SimpleWebSocketServer import WebSocket, SimpleSSLWebSocketServer
|
||||
except ImportError:
|
||||
print "install SimpleWebSocketServer"
|
||||
sys.exit()
|
||||
import sys
|
||||
sys.exit("install SimpleWebSocketServer")
|
||||
|
||||
import util
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user