Skip to content
Permalink
Browse files

Log error to ProcessingLog

  • Loading branch information
bstroebl committed Dec 8, 2014
1 parent a2c656e commit da17656fe0c34a7ade56867d0bb113fcdf746c5e
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/processing/algs/qgis/SplitLinesWithLines.py
@@ -31,6 +31,7 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.core.ProcessingLog import ProcessingLog
from processing.tools import dataobjects
from processing.tools import vector

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

# splitGeometry: If there are several intersections

0 comments on commit da17656

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