Skip to content

Commit da17656

Browse files
author
Bernhard Ströbl
committedDec 8, 2014
Log error to ProcessingLog
1 parent a2c656e commit da17656

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎python/plugins/processing/algs/qgis/SplitLinesWithLines.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from processing.core.GeoAlgorithm import GeoAlgorithm
3232
from processing.core.parameters import ParameterVector
3333
from processing.core.outputs import OutputVector
34+
from processing.core.ProcessingLog import ProcessingLog
3435
from processing.tools import dataobjects
3536
from processing.tools import vector
3637

@@ -106,7 +107,8 @@ def processAlgorithm(self, progress):
106107
try:
107108
result, newGeometries, topoTestPoints = inGeom.splitGeometry(splitterPList, False)
108109
except:
109-
QgsMessageLog.logMessage("exception")
110+
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING,
111+
'Geometry exception while splitting')
110112
result = 1
111113

112114
# splitGeometry: If there are several intersections

0 commit comments

Comments
 (0)