1. mikespook
  2. RhodeCode

Commits

Marcin Kuzminski  committed 4747af4

safe_unicode never fails. No need to catch decode exceptions

  • Participants
  • Parent commits 3c1d991
  • Branches beta

Comments (0)

Files changed (1)

File rhodecode/lib/vcs/backends/git/changeset.py

View file
         self._commit = commit
         self._tree_id = commit.tree
 
-        try:
-            self.message = safe_unicode(commit.message)
-        except UnicodeDecodeError:
-            self.message = commit.message.decode(commit.encoding or 'utf-8')
+        self.message = safe_unicode(commit.message)
         #self.branch = None
         self.tags = []
         self.nodes = {}