Skip to content

Commit

Permalink
[processing] Script decorators: correctly check that parent parameter…
Browse files Browse the repository at this point in the history
… exist
  • Loading branch information
volaya authored and nyalldawson committed Feb 25, 2019
1 parent 206cc96 commit f76be66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/processing/algfactory.py
Expand Up @@ -176,7 +176,7 @@ def _create_param(self, type, output=False, **kwargs):
if parentname == name:
raise ProcessingAlgFactoryException("{} can't depend on itself. "
"We know QGIS is smart but it's not that smart".format(name))
if parentname not in self._inputs or parentname not in self._outputs:
if parentname not in self._inputs and parentname not in self._outputs:
raise ProcessingAlgFactoryException("Can't find parent named {}".format(parentname))

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

0 comments on commit f76be66

Please sign in to comment.