Skip to content
Permalink
Browse files

Fix excepthook handling in standalone scripts

  • Loading branch information
nyalldawson authored and alexbruy committed Aug 15, 2017
1 parent 85b8502 commit 65faf542e04b9a88cb9051d51faf343164e16ac6
Showing with 2 additions and 5 deletions.
  1. +2 −5 python/plugins/processing/algs/saga/SagaAlgorithm.py
@@ -79,10 +79,7 @@ def createInstance(self):

def initAlgorithm(self, config=None):
for p in self.params:
try:
self.addParameter(p)
except:
pass # todo - remove
self.addParameter(p)

def name(self):
return self._name
@@ -164,7 +161,7 @@ def processAlgorithm(self, parameters, context, feedback):
if layer:
filename = dataobjects.exportVectorLayer(layer)
self.exportedLayers[param.value] = filename
elif not parameteres[param.name()].endswith('shp'):
elif not parameters[param.name()].endswith('shp'):
raise GeoAlgorithmExecutionException(
self.tr('Unsupported file format'))
if isinstance(param, ParameterTable):

0 comments on commit 65faf54

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