Skip to content

Commit

Permalink
Avoid catch all exception
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 5, 2018
1 parent 7e6f423 commit 0aa8241
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/plugins/processing/modeler/ModelerDialog.py
Expand Up @@ -646,9 +646,7 @@ def _addAlgorithm(self, alg, pos=None):
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()
Expand Down

0 comments on commit 0aa8241

Please sign in to comment.