[QGIS-Developer] Error when saving Processing Script QGIS master

matteo matteo.ghetta at gmail.com
Sat Mar 24 03:14:52 PDT 2018


Hi Nyall,


> Does it help if you inherit from QgsProcessingAlgorithm instead?
> There's no need to inherit from QgisAlgorithm here, you should use the
> base class directly.

nope.. I already changed that so that now the class inherits from
QgsProcessingAlgorithm.

I also noticed that I have to put:

def createInstance(self):
  return type(self)()

else the algorithm will crash..


Thanks

Matteo


More information about the QGIS-Developer mailing list