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

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