Skip to content
Browse files
Merge pull request #4041 from borysiasty/release-2_18
[Processing] Yet another fix for error message encoding errors. Fixes #16102
  • Loading branch information
borysiasty committed Jan 23, 2017
2 parents 1746b32 + 6071b40 commit 685e4a2be023f416c854048f155daf2dff528c9e
Showing 1 changed file with 6 additions and 1 deletion.
@@ -215,8 +215,13 @@ def execute(self, progress=SilentProgress(), model=None):
lines = ['Uncaught error while executing algorithm')]
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, lines)
message = unicode(e)
except UnicodeDecodeError:
# Try with the 'replace' mode (requires e.message instead of e!)
message = unicode(e.message, 'utf-8', 'replace')
raise GeoAlgorithmExecutionException(
unicode(e.message, errors='replace') +'\nSee log for more details'), lines, e)
message +' \nSee log for more details'), lines, e)

def _checkParameterValuesBeforeExecuting(self):
for param in self.parameters:

0 comments on commit 685e4a2

Please sign in to comment.