Skip to content

Commit 7e79398

Browse files
committed
[processing] fixed adding raster layer to project
fixes #13791
1 parent 86556c2 commit 7e79398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/gui/Postprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def handleAlgorithmResults(alg, progress=None, showResults=True):
5959
continue
6060
if isinstance(out, (OutputRaster, OutputVector, OutputTable)):
6161
try:
62-
if out.layer is not None:
62+
if hasattr(out, "layer") and out.layer is not None:
6363
out.layer.setLayerName(out.description)
6464
QgsMapLayerRegistry.instance().addMapLayers([out.layer])
6565
else:

0 commit comments

Comments
 (0)