Skip to content

Commit

Permalink
Add test for CoreImpl::get_versions()( openvinotoolkit#23298) ### Det…
Browse files Browse the repository at this point in the history
…ails: - Replace `} catch (const ov::Exception& ex) {` with `} catch (const std::runtime_error& ex) {` to catch the exception. ### Tickets: - [CVS-132140](https://jira.devtools.intel.com/browse/CVS-132140)
  • Loading branch information
awayzjj authored and vurusovs committed Mar 13, 2024
1 parent be0c954 commit fab3fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inference/src/dev/core_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ std::map<std::string, ov::Version> ov::CoreImpl::get_versions(const std::string&
try {
ov::Plugin plugin = get_plugin(deviceNameLocal);
versions[deviceNameLocal] = plugin.get_version();
} catch (const ov::Exception& ex) {
} catch (const std::runtime_error& ex) {
std::string exception(ex.what());
if (exception.find("not registered in the OpenVINO Runtime") == std::string::npos) {
throw;
Expand Down

0 comments on commit fab3fec

Please sign in to comment.