[projects/git-slug: 30/170] Decode binary string in exception

glen glen at pld-linux.org
Mon Sep 21 21:41:20 CEST 2015


commit 377d397a963bf586c912de855db4209437d6d670
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Tue Sep 20 20:11:02 2011 +0100

    Decode binary string in exception

 git_slug/gitrepo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/git_slug/gitrepo.py b/git_slug/gitrepo.py
index c57a0a5..f6cfecb 100644
--- a/git_slug/gitrepo.py
+++ b/git_slug/gitrepo.py
@@ -30,7 +30,7 @@ class GitRepo:
         proc = self.command(clist)
         (out, err) = proc.communicate()
         if proc.returncode:
-            raise GitRepoError(err)
+            raise GitRepoError(err.decode('utf-8'))
         return (out, err)
 
     def commitfile(self, path, message):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5



More information about the pld-cvs-commit mailing list