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 Mar 7, 2024
1 parent 221847d commit 8ff7c0e
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 @@ -1625,7 +1625,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 8ff7c0e

Please sign in to comment.