@@ -330,32 +330,17 @@ def executeAlgorithm(alg, parameters, context=None, feedback=None, model=None):
330330 context = dataobjects .createContext ()
331331
332332 #self.model = model
333- try :
334- #self.setOutputCRS()
335- #self.resolveOutputs()
336- #self.evaluateParameterValues()
337- #self.runPreExecutionScript(feedback)
338- result , ok = alg .run (parameters , context , feedback )
339- #self.processAlgorithm(parameters, context, feedback)
340- feedback .setProgress (100 )
341- return result
342- #self.convertUnsupportedFormats(context, feedback)
343- #self.runPostExecutionScript(feedback)
344- except GeoAlgorithmExecutionException as gaee :
345- lines = [self .tr ('Error while executing algorithm' )]
346- lines = []
347- lines .append (traceback .format_exc ())
348- feedback .reportError (gaee .msg )
349- QgsMessageLog .logMessage (gaee .msg , self .tr ('Processing' ), QgsMessageLog .CRITICAL )
350- raise GeoAlgorithmExecutionException (gaee .msg , lines , gaee )
351- #except Exception as e:
352- # If something goes wrong and is not caught in the
353- # algorithm, we catch it here and wrap it
354- #lines = [self.tr('Uncaught error while executing algorithm')]
355- # lines = []
356- # lines.append(traceback.format_exc())
357- #QgsMessageLog.logMessage('\n'.join(lines), self.tr('Processing'), QgsMessageLog.CRITICAL)
358- #raise GeoAlgorithmExecutionException(str(e) + self.tr('\nSee log for more details'), lines, e)
333+
334+ #self.setOutputCRS()
335+ #self.resolveOutputs()
336+ #self.evaluateParameterValues()
337+ #self.runPreExecutionScript(feedback)
338+ result , ok = alg .run (parameters , context , feedback )
339+ #self.processAlgorithm(parameters, context, feedback)
340+ feedback .setProgress (100 )
341+ return result , ok
342+ #self.convertUnsupportedFormats(context, feedback)
343+ #self.runPostExecutionScript(feedback)
359344
360345 def helpUrl (self ):
361346 return QgsHelp .helpUrl ("processing_algs/{}/{}" .format (
0 commit comments