diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index 235e4d25e020296a7c8b02cb6db96aaca0aec548..b45e5b96c3217870e843b268695361b4b5d7de5d 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -231,7 +231,7 @@ class TDDnode: # self.cfg("logDir",self.logDir) # print(updatecfgDict) isFirstDir = 1 - if updatecfgDict[0] and updatecfgDict[0][0]: + if bool(updatecfgDict) and updatecfgDict[0] and updatecfgDict[0][0]: print(updatecfgDict[0][0]) for key,value in updatecfgDict[0][0].items(): if value == 'dataDir' :