Skip to content
Permalink
Browse files

Some addition error case info

  • Loading branch information
m-kuhn authored and nyalldawson committed Mar 5, 2018
1 parent e67939b commit eeb6f44df74f812adfeed9e2d70a8123acd42992
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/plugins/processing/modeler/ModelerGraphicItem.py
@@ -61,7 +61,11 @@ def __init__(self, element, model, controls, scene=None):
painter = QPainter(self.picture)
svg.render(painter)
self.pixmap = None
self.text = self.model.parameterDefinition(element.parameterName()).description()
paramDef = self.model.parameterDefinition(element.parameterName())
if paramDef:
self.text = paramDef.description()
else:
self.text = 'Error ({})'.format(element.parameterName())
elif isinstance(element, QgsProcessingModelOutput):
# Output name
svg = QSvgRenderer(os.path.join(pluginPath, 'images', 'output.svg'))

0 comments on commit eeb6f44

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