Navigation Menu

Skip to content

Commit

Permalink
Stop loading a python plugin in plugin manager if an error occurs dur…
Browse files Browse the repository at this point in the history
…ing import.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7396 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Nov 13, 2007
1 parent 54a161e commit 9a054f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/qgspluginmanager.cpp
Expand Up @@ -90,8 +90,9 @@ void QgsPluginManager::getPythonPluginDescriptions()
{
QString packageName = pluginList[i];

// import plugin's package
QgsPythonUtils::loadPlugin(packageName);
// import plugin's package - skip loading it if an error occured
if (!QgsPythonUtils::loadPlugin(packageName))
continue;

// get information from the plugin
QString pluginName = QgsPythonUtils::getPluginMetadata(packageName, "name");
Expand Down

0 comments on commit 9a054f2

Please sign in to comment.