Skip to content


[Processing] Follow up 1ede526
Browse files Browse the repository at this point in the history
  • Loading branch information
borysiasty committed Jan 23, 2017
1 parent 1ede526 commit 9224f58
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions python/plugins/processing/core/
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,9 @@ def execute(self, progress=None, model=None):
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')
except UnicodeDecodeError:
# Try with the 'replace' mode (requires e.message instead of e!)
message = unicode(e.message, 'utf-8', 'replace')
raise GeoAlgorithmExecutionException(
message +' \nSee log for more details'), lines, e)

Expand Down

0 comments on commit 9224f58

Please sign in to comment.