Skip to content
Browse files
[Plugin Installer] Handle all exception types when loading plugins. F…
…ixes #8295. Breaks string freeze because it's a critical fix.
  • Loading branch information
borysiasty committed Jul 15, 2013
1 parent 7a82997 commit 7a7e5427061037dc15381f7b78ea4b47045cf96c
Showing with 4 additions and 0 deletions.
  1. +4 −0 python/pyplugin_installer/
@@ -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"

0 comments on commit 7a7e542

Please sign in to comment.