Skip to content
Permalink
Browse files

[processing] better handling of wrong models

  • Loading branch information
volaya committed Oct 18, 2014
1 parent de91734 commit 5e9dc03c7afd468ea6ad5a0b69ace8d7e3719e09
Showing with 6 additions and 2 deletions.
  1. +6 −2 python/plugins/processing/modeler/ModelerAlgorithmProvider.py
@@ -82,8 +82,12 @@ def loadFromFolder(self, folder):
try:
fullpath = os.path.join(path, descriptionFile)
alg = ModelerAlgorithm.fromFile(fullpath)
alg.provider = self
self.algs.append(alg)
if alg.name:
alg.provider = self
self.algs.append(alg)
else:
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
self.tr('Could not load model %s', 'ModelerAlgorithmProvider') % descriptionFile)
except WrongModelException, e:
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
self.tr('Could not load model %s\n%s', 'ModelerAlgorithmProvider') % (descriptionFile, e.msg))

0 comments on commit 5e9dc03

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