Parser factory raises value error on unknown file path 🟩

This commit is contained in:
Daniel Roth 2026-01-19 11:18:15 +00:00
parent 9244689e76
commit 6fd4b19e88

View file

@ -5,4 +5,6 @@ def select_parser(filepath: str) -> Parser:
path = filepath.lower()
if "lbwf" in path:
return LbwfParser()
return LbwfParser()
raise ValueError("Unrecognised file path, unable to instantiate Parser")