Skip to content
Browse files
[Processing] Follow up 2f65d3cc0cd665
  • Loading branch information
borysiasty committed Jan 23, 2017
1 parent 32f65d3 commit 6071b40d5473ce2e9ee5db814c04610df4066eaa
Showing 1 changed file with 3 additions and 6 deletions.
@@ -217,12 +217,9 @@ def execute(self, progress=SilentProgress(), 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)

0 comments on commit 6071b40

Please sign in to comment.