Skip to content

Commit 68cbf57

Browse files
committed
fix ProcessingQgisAlgorithmsTest (followup 491c52c)
1 parent 71db577 commit 68cbf57

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

python/plugins/processing/algs/qgis/Dissolve.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ def processAlgorithm(self, progress):
104104
tmpInGeom = inFeat.geometry()
105105
if tmpInGeom is None or tmpInGeom.isGeosEmpty():
106106
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
107-
self.tr('Skipped feature %i, which has a null geometry' % current))
107+
self.tr('Skipped feature %i, which has a null geometry' % current))
108+
continue
108109
tmpOutGeom = QgsGeometry(outFeat.geometry())
109110
errors = tmpInGeom.validateGeometry()
110111
if len(errors) != 0:
@@ -126,11 +127,11 @@ def processAlgorithm(self, progress):
126127
if errors:
127128
for error in errors:
128129
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
129-
self.tr('ValidateGeometry()'
130-
'error:One or more input'
131-
'features have invalid '
132-
'geometry: ')
133-
+ error.what())
130+
self.tr('ValidateGeometry()'
131+
'error:One or more input'
132+
'features have invalid '
133+
'geometry: ')
134+
+ error.what())
134135
continue
135136
outFeat.setGeometry(tmpOutGeom)
136137
except:

0 commit comments

Comments
 (0)