Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid catchall exception
  • Loading branch information
m-kuhn committed Mar 1, 2018
1 parent ecae50f commit 8b78440
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions python/plugins/processing/modeler/ModelerGraphicItem.py
Expand Up @@ -204,12 +204,11 @@ def editElement(self):
self.scene.dialog.repaintModel()
elif isinstance(self.element, QgsProcessingModelChildAlgorithm):
dlg = None
try:
dlg = self.element.algorithm().getCustomModelerParametersDialog(self.model, self.element.childId())
except:
pass
elemAlg = self.element.algorithm()
if hasattr(elemAlg, 'getCustomModelerParametersDialog'):
dlg = elemAlg.getCustomModelerParametersDialog(self.model, self.element.childId())
if not dlg:
dlg = ModelerParametersDialog(self.element.algorithm(), self.model, self.element.childId())
dlg = ModelerParametersDialog(elemAlg, self.model, self.element.childId())
if dlg.exec_():
alg = dlg.createAlgorithm()
alg.setChildId(self.element.childId())
Expand Down

0 comments on commit 8b78440

Please sign in to comment.