Skip to content
Permalink
Browse files

[processing] improve handling of the obsolete models (fix #14306)

  • Loading branch information
alexbruy committed Feb 18, 2016
1 parent 61a92e2 commit 30a738f9817462ef7cff2caf34bc6ccc984064f5
Showing with 8 additions and 1 deletion.
  1. +8 −1 python/plugins/processing/modeler/ModelerAlgorithm.py
@@ -653,7 +653,14 @@ def _tr(s):
modelAlg.params[param.name] = None
else:
tokens = line.split('|')
algIdx = int(tokens[0])
try:
algIdx = int(tokens[0])
except:
raise WrongModelException(
_tr('Number of parameters in the '
'{} algorithm does not match '
'current Processing '
'implementation'.format(alg.name)))
if algIdx == -1:
if tokens[1] in modelParameters:
modelAlg.params[param.name] = ValueFromInput(tokens[1])

0 comments on commit 30a738f

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