Navigation Menu

Skip to content


[processing] Script decorators: correctly check that parent parameter…
Browse files Browse the repository at this point in the history
… exist

(cherry picked from commit f76be66)
  • Loading branch information
volaya authored and nyalldawson committed Feb 25, 2019
1 parent e1f341f commit d180038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/processing/
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 d180038

Please sign in to comment.