Skip to content


[Plugin Installer] Handle all exception types when loading plugins. F…
Browse files Browse the repository at this point in the history
…ixes #8295. Breaks string freeze because it's a critical fix.
  • Loading branch information
borysiasty committed Jul 15, 2013
1 parent 7a82997 commit 7a7e542
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/pyplugin_installer/
Expand Up @@ -620,6 +620,10 @@ def pluginMetadata(fct):
exec "%s.classFactory(iface)" % key in globals(), locals()
except Exception, error:
error = unicode(error.args[0])
except SystemExit, error:
error = QCoreApplication.translate("QgsPluginInstaller", "Plugin exited with error status: {0}").format(error.args[0])
error = QCoreApplication.translate("QgsPluginInstaller", "Unknown error")
# seems there is no metadata.txt file. Maybe it's an old plugin for QGIS 1.x.
version = "-1"
Expand Down

0 comments on commit 7a7e542

Please sign in to comment.