Skip to content
Permalink
Browse files

[processing] Catch AttributeError and TypeError when loading Processi…

…ng script algorithms.

Otherwise an error in decorator of one script prevents all scripts from loading.
  • Loading branch information
radosuav authored and nyalldawson committed Jan 28, 2020
1 parent 68cbc5b commit ea0a701d7a03835911fb608dba62724e8dedcda3
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/script/ScriptUtils.py
@@ -75,7 +75,7 @@ def loadAlgorithm(moduleName, filePath):
o = obj()
scriptsRegistry[o.name()] = filePath
return o
except ImportError as e:
except (ImportError, AttributeError, TypeError) as e:
QgsMessageLog.logMessage(QCoreApplication.translate("ScriptUtils", "Could not import script algorithm '{}' from '{}'\n{}").format(moduleName, filePath, str(e)),
QCoreApplication.translate("ScriptUtils", "Processing"),
Qgis.Critical)

0 comments on commit ea0a701

Please sign in to comment.
You can’t perform that action at this time.