Navigation Menu

Skip to content

Commit

Permalink
[processing] improve handling of the obsolete models (fix #14306)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 18, 2016
1 parent 61a92e2 commit 30a738f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion python/plugins/processing/modeler/ModelerAlgorithm.py
Expand Up @@ -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])
Expand Down

0 comments on commit 30a738f

Please sign in to comment.