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

This commit is contained in:
Alexander Bruy 2016-02-18 15:55:01 +02:00
parent 61a92e2fac
commit 30a738f981

View File

@ -653,7 +653,14 @@ class ModelerAlgorithm(GeoAlgorithm):
modelAlg.params[param.name] = None
else:
tokens = line.split('|')
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])