Beremiz_service.py
branch#2486
changeset 2204 25dafeb98b55
parent 2202 237c1a2de1c8
child 2205 4c74218b42e1
equal deleted inserted replaced
2203:c8a32ad27c0a 2204:25dafeb98b55
   616         except Exception:
   616         except Exception:
   617             LogMessageAndException(_("Nevow Web service failed. "))
   617             LogMessageAndException(_("Nevow Web service failed. "))
   618 
   618 
   619     if wampconf is not None:
   619     if wampconf is not None:
   620         try:
   620         try:
   621             _wampconf = WC.LoadWampClientConf(wampconf)
   621             WC.SetServer(pyroserver, wampconf, wampsecret)
       
   622             _wampconf = WC.LoadWampClientConf()
   622             if _wampconf:
   623             if _wampconf:
   623                 WC.SetServer(pyroserver, wampconf, wampsecret)
       
   624                 if _wampconf.get("url", False) and _wampconf.get("active", False):  # TODO : test more ?
   624                 if _wampconf.get("url", False) and _wampconf.get("active", False):  # TODO : test more ?
   625                     WC.RegisterWampClient()
   625                     WC.RegisterWampClient()
   626                 else:
   626                 else:
   627                     raise Exception(_("WAMP config is incomplete or active is false."))
   627                     raise Exception(_("WAMP config is incomplete or active is false."))
   628             else:
   628             else: