Skip to content

Commit a84fc3e

Browse files
borysiastym-kuhn
authored andcommittedJan 5, 2017
Fix wrapping unicoded error messages
1 parent 96cd751 commit a84fc3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎python/plugins/processing/core/GeoAlgorithm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ def execute(self, progress=SilentProgress(), model=None):
215215
lines = [self.tr('Uncaught error while executing algorithm')]
216216
lines.append(traceback.format_exc())
217217
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, lines)
218-
raise GeoAlgorithmExecutionException(unicode(e) + self.tr('\nSee log for more details'), lines, e)
218+
raise GeoAlgorithmExecutionException(
219+
unicode(e.message, errors='replace') + self.tr('\nSee log for more details'), lines, e)
219220

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

0 commit comments

Comments
 (0)
Please sign in to comment.