Skip to content
Permalink
Browse files

Fix mean coords uses old exception

  • Loading branch information
nyalldawson committed Jul 15, 2017
1 parent b7f888b commit 82edbab814ace023be95983d89a8ce4cde436141
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/processing/algs/qgis/MeanCoords.py
@@ -42,11 +42,11 @@
QgsProcessing,
QgsProcessingParameterFeatureSink,
QgsProcessingParameterField,
QgsProcessingParameterFeatureSource)
QgsProcessingParameterFeatureSource,
QgsProcessingException)

from processing.algs.qgis.QgisAlgorithm import QgisAlgorithm
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.tools import dataobjects, vector
from processing.tools import vector

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

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

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

if clazz not in means:

0 comments on commit 82edbab

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