modifié: superTornado.py
This commit is contained in:
parent
f51621e271
commit
9bc072c3c9
@ -160,16 +160,17 @@ if __name__ == "__main__":
|
|||||||
portCamera = config.portCamera()
|
portCamera = config.portCamera()
|
||||||
portServ = config.portServ()
|
portServ = config.portServ()
|
||||||
if blind == "error" :
|
if blind == "error" :
|
||||||
raise BlindConfigurationERROR(bcolors.FAIL +"Failed Load Blind Configuration")
|
raise BlindConfigurationERROR("Failed Load Blind Configuration")
|
||||||
if ipCamera == "error" :
|
if ipCamera == "error" :
|
||||||
raise IPCameraConfigurationERROR(bcolors.FAIL +"Failed Load IP Camera Configuration")
|
raise IPCameraConfigurationERROR("Failed Load IP Camera Configuration")
|
||||||
if portCamera == "error" :
|
if portCamera == "error" :
|
||||||
raise PortCameraConfigurationERROR(bcolors.FAIL + "Failed Load IP Camera Configuration")
|
raise PortCameraConfigurationERROR("Failed Load IP Camera Configuration")
|
||||||
if portServ == "error" :
|
if portServ == "error" :
|
||||||
raise PortServConfigurationERROR(bcolors.FAIL + "Failed Load Port Server Configuration")
|
raise PortServConfigurationERROR("Failed Load Port Server Configuration")
|
||||||
except Exception, e :
|
except Exception, e :
|
||||||
|
print bcolors.FAIL
|
||||||
|
print e
|
||||||
print "Configuration Loading Failed ! Check Configuration File !" + bcolors.ENDC
|
print "Configuration Loading Failed ! Check Configuration File !" + bcolors.ENDC
|
||||||
print bcolors.FAIL + e + bcolors.ENDC
|
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
print "->Configuration Server Load Successfully :"
|
print "->Configuration Server Load Successfully :"
|
||||||
if blind == True:
|
if blind == True:
|
||||||
|
Reference in New Issue
Block a user