Skip to content

Commit

Permalink
Fix wrapping unicoded error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
borysiasty authored and m-kuhn committed Jan 5, 2017
1 parent 96cd751 commit a84fc3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/core/GeoAlgorithm.py
Expand Up @@ -215,7 +215,8 @@ def execute(self, progress=SilentProgress(), model=None):
lines = [self.tr('Uncaught error while executing algorithm')]
lines.append(traceback.format_exc())
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, lines)
raise GeoAlgorithmExecutionException(unicode(e) + self.tr('\nSee log for more details'), lines, e)
raise GeoAlgorithmExecutionException(
unicode(e.message, errors='replace') + self.tr('\nSee log for more details'), lines, e)

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

0 comments on commit a84fc3e

Please sign in to comment.