Skip to content

Commit 82edbab

Browse files
committedJul 15, 2017
Fix mean coords uses old exception
1 parent b7f888b commit 82edbab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
QgsProcessing,
4343
QgsProcessingParameterFeatureSink,
4444
QgsProcessingParameterField,
45-
QgsProcessingParameterFeatureSource)
45+
QgsProcessingParameterFeatureSource,
46+
QgsProcessingException)
4647

4748
from processing.algs.qgis.QgisAlgorithm import QgisAlgorithm
48-
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
49-
from processing.tools import dataobjects, vector
49+
from processing.tools import vector
5050

5151
pluginPath = os.path.split(os.path.split(os.path.dirname(__file__))[0])[0]
5252

@@ -139,7 +139,7 @@ def processAlgorithm(self, parameters, context, feedback):
139139
weight = 1.00
140140

141141
if weight < 0:
142-
raise GeoAlgorithmExecutionException(
142+
raise QgsProcessingException(
143143
self.tr('Negative weight value found. Please fix your data and try again.'))
144144

145145
if clazz not in means:

0 commit comments

Comments
 (0)
Please sign in to comment.