Skip to content

Commit

Permalink
Fix excepthook handling in standalone scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and alexbruy committed Nov 9, 2017
1 parent 85b8502 commit 65faf54
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/plugins/processing/algs/saga/SagaAlgorithm.py
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 65faf54

Please sign in to comment.