Skip to content
Permalink
Browse files
[Processing] Follow up 1ede526
  • Loading branch information
borysiasty committed Jan 23, 2017
1 parent 1ede526 commit 9224f585d95a54c79ac3a2c0efabd9c1235a66bc
Showing with 3 additions and 6 deletions.
  1. +3 −6 python/plugins/processing/core/GeoAlgorithm.py
@@ -215,12 +215,9 @@ def execute(self, progress=None, model=None):
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, lines)
try:
message = unicode(e)
except Exception:
# Encoding the error message failed. Try with the 'replace' mode.
try:
message = unicode(e.message, 'utf-8', 'replace')
except Exception:
message = self.tr('Unknown error')
except UnicodeDecodeError:
# Try with the 'replace' mode (requires e.message instead of e!)
message = unicode(e.message, 'utf-8', 'replace')
raise GeoAlgorithmExecutionException(
message + self.tr(' \nSee log for more details'), lines, e)

0 comments on commit 9224f58

Please sign in to comment.