From be25b2e392a39fa4af3752071b1e40df3fd1146e Mon Sep 17 00:00:00 2001 From: Paul Wittle Date: Fri, 20 Sep 2019 09:27:30 +0100 Subject: [PATCH] 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. --- python/plugins/processing/tools/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/plugins/processing/tools/general.py b/python/plugins/processing/tools/general.py index 737d1e6513f..a5580989502 100644 --- a/python/plugins/processing/tools/general.py +++ b/python/plugins/processing/tools/general.py @@ -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())