diff --git a/src/inference/src/dev/core_impl.cpp b/src/inference/src/dev/core_impl.cpp index 63e5a747819c96..1123445f658d9d 100644 --- a/src/inference/src/dev/core_impl.cpp +++ b/src/inference/src/dev/core_impl.cpp @@ -1635,7 +1635,7 @@ std::map 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;