Skip to content

Commit

Permalink
Update error message log based on comment in ticket 111
Browse files Browse the repository at this point in the history
  • Loading branch information
namsonx committed Jan 24, 2024
1 parent 6849baf commit 296c948
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions JsonPreprocessor/CJsonPreprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,8 @@ def __loadNestedValue(initValue: str, sInputStr: str, bKey=False, key=''):
valueProcessed = valueProcessed.replace(CNameMangling.DUPLICATEDKEY_02.value, '')
raise Exception(f"The variable '{valueProcessed}' is not available!")
if bKey and type(ldict['value']) in [list, dict]:
if CNameMangling.AVOIDDATATYPE.value in valueProcessed:
valueProcessed = valueProcessed.replace(CNameMangling.AVOIDDATATYPE.value, '')
self.__reset(bCleanGlobalVars=True)
while 'str(' in key:
key = re.sub("str\(([0-9A-Za-z\._\${}'\[\]]+)\)", "\\1", key)
Expand Down

0 comments on commit 296c948

Please sign in to comment.