Skip to content

Commit 0aa8241

Browse files
committedApr 5, 2018
Avoid catch all exception
1 parent 7e6f423 commit 0aa8241

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎python/plugins/processing/modeler/ModelerDialog.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,7 @@ def _addAlgorithm(self, alg, pos=None):
646646
dlg = None
647647
try:
648648
dlg = alg.getCustomModelerParametersDialog(self.model)
649-
except:
650-
pass
651-
if not dlg:
649+
except AttributeError:
652650
dlg = ModelerParametersDialog(alg, self.model)
653651
if dlg.exec_():
654652
alg = dlg.createAlgorithm()

0 commit comments

Comments
 (0)
Please sign in to comment.