File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
python/plugins/processing/algs/qgis Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 32
32
from qgis .core import QgsFeatureRequest
33
33
from qgis .analysis import QgsKernelDensityEstimation
34
34
35
+ from processing .core .ProcessingLog import ProcessingLog
35
36
from processing .core .GeoAlgorithm import GeoAlgorithm
36
37
from processing .core .GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
37
38
from processing .core .parameters import ParameterVector
@@ -166,8 +167,8 @@ def processAlgorithm(self, progress):
166
167
total = 100.0 / len (features )
167
168
for current , f in enumerate (features ):
168
169
if kde .addFeature (f ) != QgsKernelDensityEstimation .Success :
169
- raise GeoAlgorithmExecutionException (
170
- self .tr ('Error adding feature to heatmap' ))
170
+ ProcessingLog . addToLog ( ProcessingLog . LOG_ERROR ,
171
+ self .tr ('Error adding feature with ID {} to heatmap' ). format ( f . id () ))
171
172
172
173
progress .setPercentage (int (current * total ))
173
174
You can’t perform that action at this time.
0 commit comments