Skip to content
Browse files
[Processing] Yet another fix for error message encoding errors. Fixes #…
  • Loading branch information
borysiasty committed Jan 23, 2017
1 parent 538b7c9 commit 1ede526c8eb8a8e2950e8596d3df7577b848bf11
Showing 1 changed file with 9 additions and 1 deletion.
@@ -213,8 +213,16 @@ def execute(self, progress=None, model=None):
lines = ['Uncaught error while executing algorithm')]
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, lines)
message = unicode(e)
except Exception:
# Encoding the error message failed. Try with the 'replace' mode.
message = unicode(e.message, 'utf-8', 'replace')
except Exception:
message ='Unknown error')
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:

0 comments on commit 1ede526

Please sign in to comment.