mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Parser factory raises value error on unknown file path 🟩
This commit is contained in:
parent
9244689e76
commit
6fd4b19e88
1 changed files with 3 additions and 1 deletions
|
|
@ -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")
|
||||
Loading…
Add table
Reference in a new issue