diff --git a/confidence/io.py b/confidence/io.py index 5b28fa5..b4795a0 100644 --- a/confidence/io.py +++ b/confidence/io.py @@ -267,8 +267,8 @@ def loadf( def readf(fpath: Path) -> typing.Mapping[str, typing.Any]: try: return format.loadf(fpath) - except OSError: - # file does not exist or inaccessible + except FileNotFoundError: + # file does not exist if default is NoDefault: # no explicit default provided, continue original error raise