Changeset - 4747af4ce203
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-05-17 14:03:35
marcin@python-works.com
safe_unicode never fails. No need to catch decode exceptions
1 file changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/vcs/backends/git/changeset.py
Show inline comments
 
@@ -37,10 +37,7 @@ class GitChangeset(BaseChangeset):
 
        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 = {}
0 comments (0 inline, 0 general)