Skip to content

Commit

Permalink
Partially revert 636a37f
Browse files Browse the repository at this point in the history
Fix processing modeler error on startup
  • Loading branch information
nyalldawson committed May 4, 2017
1 parent 49bec6b commit 02e96a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/plugins/processing/modeler/ModelerAlgorithm.py
Expand Up @@ -612,6 +612,14 @@ def _import(name):
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:
Expand Down

0 comments on commit 02e96a2

Please sign in to comment.