Open HolQue opened 1 month ago
In most of the cases, error messages contain a reason for the format being invalid, e.g.:
errorMsg = f"Invalid parameter format: {sInput} - The double quotes are missing!!!"
But the code contains also this:
if sInput.count("{") != sInput.count("}") or sInput.count("[") != sInput.count("]"): errorMsg = f"Invalid parameter format: {sInput.strip()}"
I would say, also here the reason (bracket mismatch) should be printed out, because the reason is known.
Is there a certain reason to count if sInput.count("{") instead of if sInput.count("${") like at other positions?
if sInput.count("{")
if sInput.count("${")
In most of the cases, error messages contain a reason for the format being invalid, e.g.:
errorMsg = f"Invalid parameter format: {sInput} - The double quotes are missing!!!"
But the code contains also this:
I would say, also here the reason (bracket mismatch) should be printed out, because the reason is known.
Is there a certain reason to count
if sInput.count("{")
instead ofif sInput.count("${")
like at other positions?