Skip to content

Commit

Permalink
[processing] do not format errors before sending to log
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Nov 6, 2015
1 parent 4692eb5 commit 8d8fac4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions python/plugins/processing/core/GeoAlgorithm.py
Expand Up @@ -238,13 +238,7 @@ def execute(self, progress=None, model=None):
# If something goes wrong and is not caught in the
# algorithm, we catch it here and wrap it
lines = [self.tr('Uncaught error while executing algorithm')]
errstring = traceback.format_exc()
newline = errstring.find('\n')
if newline != -1:
lines.append(errstring[:newline])
else:
lines.append(errstring)
lines.append(errstring.replace('\n', '|'))
lines.append(traceback.format_exc())
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, lines)
raise GeoAlgorithmExecutionException(
unicode(e) + self.tr('\nSee log for more details'))
Expand Down

0 comments on commit 8d8fac4

Please sign in to comment.