From 6c26f34961f6f9701734690c35dc713b557399bc Mon Sep 17 00:00:00 2001 From: Saul Pwanson Date: Mon, 27 Nov 2023 11:10:48 -0800 Subject: [PATCH] Update join warning message --- visidata/features/join.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/visidata/features/join.py b/visidata/features/join.py index 85a0b4c08..e98f1aaed 100644 --- a/visidata/features/join.py +++ b/visidata/features/join.py @@ -137,7 +137,8 @@ def calcValue(self, row): if row[c.sheet] is not None: vals.add(c.getTypedValue(row[c.sheet])) if len(vals) != 1: - vd.warning(f"The source key columns of {', '.join([col.sheet.name + ':' + col.name for col in self.keycols])}, have different types. Type the source columns before joining.") + keycolnames = ', '.join([f'{col.sheet.name}:{col.name}' for col in self.keycols]) + vd.warning(f"The source key columns ({keycolnames}) have different types. Type the source columns before joining.") return vals.pop() def putValue(self, row, value):