mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
[processing] improve handling of the obsolete models (fix #14306)
This commit is contained in:
parent
61a92e2fac
commit
30a738f981
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user