diff --git a/include/boost_plugin_loader/plugin_loader.hpp b/include/boost_plugin_loader/plugin_loader.hpp index dc1c7ae..d9884cb 100644 --- a/include/boost_plugin_loader/plugin_loader.hpp +++ b/include/boost_plugin_loader/plugin_loader.hpp @@ -207,8 +207,14 @@ std::vector PluginLoader::getAvailablePlugins(const std::string& se { for (const auto& library : library_names) { - std::vector lib_plugins = getAllAvailableSymbols(section, library, path); - plugins.insert(plugins.end(), lib_plugins.begin(), lib_plugins.end()); + try + { + std::vector lib_plugins = getAllAvailableSymbols(section, library, path); + plugins.insert(plugins.end(), lib_plugins.begin(), lib_plugins.end()); + } + catch (const std::exception& /*ex*/) + { + } } } @@ -230,8 +236,14 @@ std::vector PluginLoader::getAvailableSections(bool include_hidden) { for (const auto& library : library_names) { - std::vector lib_sections = getAllAvailableSections(library, path, include_hidden); - sections.insert(sections.end(), lib_sections.begin(), lib_sections.end()); + try + { + std::vector lib_sections = getAllAvailableSections(library, path, include_hidden); + sections.insert(sections.end(), lib_sections.begin(), lib_sections.end()); + } + catch (const std::exception& /*ex*/) + { + } } }