diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index a60873c8ef62bb594ee7dc3f42775eb3a9299736..7e4e226e8a6a4eb1e97858ed2d9e47849a20748b 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -114,11 +114,14 @@ class TDSimClient: for key, value in self.cfgDict.items(): self.cfg(key, value) - if bool(updatecfgDict) and updatecfgDict[0] and updatecfgDict[0][0]: - print(updatecfgDict[0][0]) - clientCfg = dict (updatecfgDict[0][0].get('clientCfg')) - for key, value in clientCfg.items(): - self.cfg(key, value) + try: + if updatecfgDict and updatecfgDict[0] and updatecfgDict[0][0]: + clientCfg = dict (updatecfgDict[0][0].get('clientCfg')) + if clientCfg is not None: + for key, value in clientCfg.items(): + self.cfg(key, value) + except Exception as e: + pass tdLog.debug("psim is deployed and configured by %s" % (self.cfgPath))