Skip to content

Line breaks and string conversions #290

@HolQue

Description

@HolQue

Hi Son,

please avoid such manual line breaks:
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) ?

My understanding is that already f"{...}" does the job.

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions