Open HolQue opened 1 month ago
Hi Son,
please avoid such manual line breaks: raise Exception(f"\n{str(error)} in line: '{line}'")
raise Exception(f"\n{str(error)} in line: '{line}'")
Because the output is:
Error: ' No closing quotation in line: ' "param" : ${'}''!
But expected is:
Error: 'No closing quotation in line: ' "param" : ${'}''!
What is the reason for this type cast: str(error) ?
str(error)
My understanding is that already f"{...}" does the job.
f"{...}"
Hi Son,
please avoid such manual line breaks:
raise Exception(f"\n{str(error)} in line: '{line}'")
Because the output is:
But expected is:
Error: 'No closing quotation in line: ' "param" : ${'}''!
What is the reason for this type cast:
str(error)
?My understanding is that already
f"{...}"
does the job.