Skip to content
Permalink
Browse files

Avoid catchall exception

  • Loading branch information
m-kuhn committed Mar 1, 2018
1 parent ecae50f commit 8b784400f71555601b0356a9d2aa6e0cc23d2545
Showing with 4 additions and 5 deletions.
  1. +4 −5 python/plugins/processing/modeler/ModelerGraphicItem.py
@@ -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())

0 comments on commit 8b78440

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