Skip to content

Commit 5c86821

Browse files
committed
fix(transformer): extract escaped chars out of the f-strings
1 parent 0c04ed2 commit 5c86821

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ontoweaver/transformer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def __init__(self, raise_errors: bool = True):
9797
def __call__(self, columns, row, i):
9898
for key in columns:
9999
if key not in row:
100-
self.error(f"Column '{key}' not found in data. Available columns:\n\t`{'`\n\t`'.join(row.keys())}`\n", section="map.call",
100+
available = "`\n\t`".join(row.keys())
101+
self.error(f"Column '{key}' not found in data. Available columns:\n\t`{available}`\n", section="map.call",
101102
exception=exceptions.TransformerDataError)
102103
else:
103104
yield row[key]

0 commit comments

Comments
 (0)