diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index 0128c8caa29a75693ab88745cab9e64f07a82cc8..397c56acd25f163728c76e3662c21a2e22699537 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -112,7 +112,7 @@ class TDSimClient: # update extra client config clientCfgkeys = ["clientMerge"] - if updatecfgDict[0] and updatecfgDict[0][0]: + if bool(updatecfgDict) and updatecfgDict[0] and updatecfgDict[0][0]: for key, value in updatecfgDict[0][0].items(): if key in clientCfgkeys: self.cfg(key, value)