mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Partially revert 636a37f
Fix processing modeler error on startup
This commit is contained in:
parent
49bec6b665
commit
02e96a2d80
@ -612,6 +612,14 @@ class ModelerAlgorithm(GeoAlgorithm):
|
||||
clazz = getattr(module, className)
|
||||
instance = clazz()
|
||||
for k, v in list(values.items()):
|
||||
# upgrade old model files
|
||||
if k == 'group':
|
||||
k = '_group'
|
||||
elif k == 'name':
|
||||
instance.__dict__['_name'] = v
|
||||
k = 'modeler_name'
|
||||
if not issubclass(clazz, GeoAlgorithm):
|
||||
instance.__dict__['name'] = v
|
||||
instance.__dict__[k] = v
|
||||
return instance
|
||||
except KeyError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user