Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix mean coords uses old exception
  • Loading branch information
nyalldawson committed Jul 15, 2017
1 parent b7f888b commit 82edbab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/algs/qgis/MeanCoords.py
Expand Up @@ -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]

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 82edbab

Please sign in to comment.