Skip to content

Commit b3ba22f

Browse files
committed
Adjusted exception handling in memspec parser
1 parent 55a3985 commit b3ba22f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/DRAMUtils/memspec/MemSpec.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ inline std::optional<MemSpec::MemSpecVariant> parse_memspec_from_json(const json
130130
}
131131
catch (std::exception&)
132132
{
133+
return std::nullopt;
133134
}
134135

135136
return std::nullopt;

0 commit comments

Comments
 (0)