Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions confidence/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down