From 6fd4b19e886bc962fe4d119590c2b2e4fdd6d6e2 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Mon, 19 Jan 2026 11:18:15 +0000 Subject: [PATCH] =?UTF-8?q?Parser=20factory=20raises=20value=20error=20on?= =?UTF-8?q?=20unknown=20file=20path=20=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/condition/parsing/factory.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/condition/parsing/factory.py b/backend/condition/parsing/factory.py index c2963079..7db8383f 100644 --- a/backend/condition/parsing/factory.py +++ b/backend/condition/parsing/factory.py @@ -5,4 +5,6 @@ def select_parser(filepath: str) -> Parser: path = filepath.lower() if "lbwf" in path: - return LbwfParser() \ No newline at end of file + return LbwfParser() + + raise ValueError("Unrecognised file path, unable to instantiate Parser") \ No newline at end of file