Skip to content

Commit 17b3bd3

Browse files
committed
Remove unused error handling
We're not opening any files now in this parser so we can remove this catch
1 parent ce61f50 commit 17b3bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/maison/parsers/toml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def parse_config(self, file: typing.BinaryIO) -> typedefs.ConfigValues:
3939
"""See the Parser.parse_config method."""
4040
try:
4141
values = dict(tomllib.load(file))
42-
except (FileNotFoundError, tomllib.TOMLDecodeError):
42+
except tomllib.TOMLDecodeError:
4343
return {}
4444

4545
current = values

0 commit comments

Comments
 (0)