Skip to content
Permalink
Browse files

GeoAlgorithmExecutionException -> QgsProcessingException

  • Loading branch information
nyalldawson authored and alexbruy committed Aug 15, 2017
1 parent 65faf54 commit 1fc395b4faea73949daef18683c52af1f6c386e7
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/processing/algs/saga/SagaAlgorithm.py
@@ -29,9 +29,9 @@
import os
import importlib
from qgis.core import (QgsProcessingUtils,
QgsProcessingException,
QgsMessageLog)
from processing.core.ProcessingConfig import ProcessingConfig
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
from processing.core.parameters import (getParameterFromString,
ParameterExtent,
ParameterRaster,
@@ -162,7 +162,7 @@ def processAlgorithm(self, parameters, context, feedback):
filename = dataobjects.exportVectorLayer(layer)
self.exportedLayers[param.value] = filename
elif not parameters[param.name()].endswith('shp'):
raise GeoAlgorithmExecutionException(
raise QgsProcessingException(
self.tr('Unsupported file format'))
if isinstance(param, ParameterTable):
if param.name() not in parameters or parameters[param.name()] is None:
@@ -172,7 +172,7 @@ def processAlgorithm(self, parameters, context, feedback):
filename = dataobjects.exportTable(table)
self.exportedLayers[parameters[param.name()]] = filename
elif not parameters[param.name()].endswith('shp'):
raise GeoAlgorithmExecutionException(
raise QgsProcessingException(
self.tr('Unsupported file format'))
if isinstance(param, ParameterMultipleInput):
if param.name() not in parameters or parameters[param.name()] is None:
@@ -200,7 +200,7 @@ def processAlgorithm(self, parameters, context, feedback):
filename = dataobjects.exportVectorLayer(layer)
self.exportedLayers[layerfile] = filename
elif not layerfile.endswith('shp'):
raise GeoAlgorithmExecutionException(
raise QgsProcessingException(
self.tr('Unsupported file format'))

# TODO - set minimum extent

0 comments on commit 1fc395b

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