Skip to content
Permalink
Browse files

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

… exist

(cherry picked from commit f76be66)
  • Loading branch information
volaya authored and nyalldawson committed Feb 25, 2019
1 parent e1f341f commit d1800388f2c89a284d890c99ca51dfff371b358e
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/processing/algfactory.py
@@ -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 d180038

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