Skip to content
Permalink
Browse files

Avoid catch all exception

  • Loading branch information
m-kuhn committed Apr 5, 2018
1 parent 7e6f423 commit 0aa8241da44cb3db26fc8fe0cc2a6113d6ee0cea
Showing with 1 addition and 3 deletions.
  1. +1 −3 python/plugins/processing/modeler/ModelerDialog.py
@@ -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()

0 comments on commit 0aa8241

Please sign in to comment.
You can’t perform that action at this time.