Avoid catch all exception

This commit is contained in:
Matthias Kuhn 2018-04-04 23:00:41 +02:00
parent 7e6f423e42
commit 0aa8241da4

View File

@ -646,9 +646,7 @@ class ModelerDialog(BASE, WIDGET):
dlg = None
try:
dlg = alg.getCustomModelerParametersDialog(self.model)
except:
pass
if not dlg:
except AttributeError:
dlg = ModelerParametersDialog(alg, self.model)
if dlg.exec_():
alg = dlg.createAlgorithm()