Skip to content

Commit 02e96a2

Browse files
committed
Partially revert 636a37f
Fix processing modeler error on startup
1 parent 49bec6b commit 02e96a2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

python/plugins/processing/modeler/ModelerAlgorithm.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,14 @@ def _import(name):
612612
clazz = getattr(module, className)
613613
instance = clazz()
614614
for k, v in list(values.items()):
615+
# upgrade old model files
616+
if k == 'group':
617+
k = '_group'
618+
elif k == 'name':
619+
instance.__dict__['_name'] = v
620+
k = 'modeler_name'
621+
if not issubclass(clazz, GeoAlgorithm):
622+
instance.__dict__['name'] = v
615623
instance.__dict__[k] = v
616624
return instance
617625
except KeyError:

0 commit comments

Comments
 (0)