modifié: superTornado.py
This commit is contained in:
parent
33c1612da5
commit
e20fd564ef
@ -156,18 +156,9 @@ if __name__ == "__main__":
|
|||||||
print "->Loading configuration ... "
|
print "->Loading configuration ... "
|
||||||
try :
|
try :
|
||||||
blind = config.isBlind()
|
blind = config.isBlind()
|
||||||
ipCamera = config.ipCamera()
|
|
||||||
portCamera = config.portCamera()
|
|
||||||
portServ = config.portServ()
|
|
||||||
if blind == "error" :
|
if blind == "error" :
|
||||||
raise BlindConfigurationERROR("Failed Load Blind Configuration")
|
raise BlindConfigurationERROR("Failed Load Blind Configuration")
|
||||||
if ipCamera == "error" :
|
except BlindConfigurationERROR as e :
|
||||||
raise IPCameraConfigurationERROR("Failed Load IP Camera Configuration")
|
|
||||||
if portCamera == "error" :
|
|
||||||
raise PortCameraConfigurationERROR("Failed Load IP Camera Configuration")
|
|
||||||
if portServ == "error" :
|
|
||||||
raise PortServConfigurationERROR("Failed Load Port Server Configuration")
|
|
||||||
except Exception as e :
|
|
||||||
print bcolors.FAIL
|
print bcolors.FAIL
|
||||||
print e
|
print e
|
||||||
print "Configuration Loading Failed ! Check Configuration File !" + bcolors.ENDC
|
print "Configuration Loading Failed ! Check Configuration File !" + bcolors.ENDC
|
||||||
|
Reference in New Issue
Block a user