From da66ad085f9dabbc74d262233b1da75f456f9ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lan=C4=8D?= Date: Wed, 24 Apr 2024 09:01:20 +0200 Subject: [PATCH] Improve validation message --- tap_google_sheets/tap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tap_google_sheets/tap.py b/tap_google_sheets/tap.py index 4073497..8b357a7 100644 --- a/tap_google_sheets/tap.py +++ b/tap_google_sheets/tap.py @@ -169,8 +169,7 @@ def get_first_line_range(stream_config): start_column, start_line, end_column, end_line = result.groups("") break else: - # This should never happen, regex should be validated by the jsonschema - raise ConfigValidationError("Invalid range format") + raise ConfigValidationError("Invalid range format, please use valid A1 notation.") if start_line and end_line: line_number = str(min(int(start_line), int(end_line))) else: