Update general.py

Correction of error return type from bool to None (as per comments). This is to resolve unexpected exception messages when algorithm is not found.
This commit is contained in:
Paul Wittle 2019-09-20 09:27:30 +01:00
parent 240bfb2a3f
commit be25b2e392

View File

@ -168,7 +168,7 @@ def createAlgorithmDialog(algOrName, parameters={}):
alg = QgsApplication.processingRegistry().createAlgorithmById(algOrName)
if alg is None:
return False
return None
dlg = alg.createCustomParametersWidget(iface.mainWindow())