modifié: m/fichier/conf
modifié: superTornado.py
This commit is contained in:
parent
64728ff11d
commit
4397ac8322
@ -1,5 +1,3 @@
|
||||
blind=1
|
||||
camera=192.168.1.13
|
||||
portCamera=80
|
||||
|
||||
|
||||
|
@ -160,6 +160,12 @@ if __name__ == "__main__":
|
||||
ipCamera = config.ipCamera()
|
||||
portCamera = config.portCamera()
|
||||
portServ = config.portServ()
|
||||
if blind == "error" :
|
||||
raise ConfigError("Failed Load Blind Configuration")
|
||||
if ipCamera == "error" :
|
||||
raise ConfigError("Failed Load IP Camera Configuration")
|
||||
if portCamera == "error" :
|
||||
raise ConfigError("Failed Load IP Camera Configuration")
|
||||
if portServ == "error" :
|
||||
raise ConfigError("Failed Load Port Server Configuration")
|
||||
except ConfigError as e :
|
||||
|
Reference in New Issue
Block a user