Skip to content

Commit

Permalink
Catch all the exceptions when firmware version is not present. (#8282)
Browse files Browse the repository at this point in the history
Signed-off-by: Manoj Takasi <[email protected]>
(cherry picked from commit 1b13f66)

Co-authored-by: Manoj Takasi <[email protected]>
  • Loading branch information
ManojTakasi and Manoj Takasi authored Jul 10, 2024
1 parent 457ef2b commit cb8b00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime_src/core/tools/common/reports/ReportHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ ReportHost::writeReport(const xrt_core::device* /*_pDevice*/,
if (!available_devices.empty())
_output << boost::format(" %-20s : %s\n") % "Firmware Version" % available_devices.begin()->second.get<std::string>("firmware_version");
}
catch (const xrt_core::query::exception&) {
catch (...) {
//no device available
}

Expand Down

0 comments on commit cb8b00d

Please sign in to comment.