[yum-commits] yum/__init__.py

zpavlas at osuosl.org zpavlas at osuosl.org
Mon Jan 14 13:01:52 UTC 2013


 yum/__init__.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit afdf914297957b2aa4063f065b3d5b3d0311d1f5
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date:   Mon Jan 14 14:01:13 2013 +0100

    _lock(): yet another exception2msg fix

diff --git a/yum/__init__.py b/yum/__init__.py
index abed04d..10a5477 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -2050,7 +2050,7 @@ much more problems).
         except OSError, msg:
             if not msg.errno == errno.EEXIST: 
                 # Whoa. What the heck happened?
-                errmsg = _('Could not create lock at %s: %s ') % (filename, str(msg))
+                errmsg = _('Could not create lock at %s: %s ') % (filename, exception2msg(msg))
                 raise Errors.LockError(msg.errno, errmsg, int(contents))
             return 0
     


More information about the Yum-commits mailing list