Skip to content
Browse files

[processing] Script decorators: correctly check that parent parameter…

… exist
  • Loading branch information
volaya authored and nyalldawson committed Feb 25, 2019
1 parent 206cc96 commit f76be664fef81a2fe07d7dc656023881810f2870
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/processing/
@@ -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", "")

0 comments on commit f76be66

Please sign in to comment.
You can’t perform that action at this time.