Skip to content

Commit d180038

Browse files
volayanyalldawson
authored andcommitted
[processing] Script decorators: correctly check that parent parameter exist
(cherry picked from commit f76be66)
1 parent e1f341f commit d180038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/processing/algfactory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _create_param(self, type, output=False, **kwargs):
176176
if parentname == name:
177177
raise ProcessingAlgFactoryException("{} can't depend on itself. "
178178
"We know QGIS is smart but it's not that smart".format(name))
179-
if parentname not in self._inputs or parentname not in self._outputs:
179+
if parentname not in self._inputs and parentname not in self._outputs:
180180
raise ProcessingAlgFactoryException("Can't find parent named {}".format(parentname))
181181

182182
kwargs['description'] = kwargs.pop("label", "")

0 commit comments

Comments
 (0)