Skip to content


[Processing] Yet another fix for error message encoding errors (for 2…
Browse files Browse the repository at this point in the history
….14) (#4042)

* [Processing] Yet another fix for error message encoding errors. Fixes #16102

* [Processing] Follow up 1ede526
  • Loading branch information
borysiasty authored and m-kuhn committed Jan 23, 2017
1 parent 538b7c9 commit 730c164
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/plugins/processing/core/
Expand Up @@ -213,8 +213,13 @@ def execute(self, progress=None, 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'))
message +' \nSee log for more details'), lines, e)

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

0 comments on commit 730c164

Please sign in to comment.