if you're going to print an exception, bind the exception when you catch it
authorBrian Harring <ferringb@gentoo.org>
Thu, 22 Dec 2005 06:56:49 +0000 (06:56 -0000)
committerBrian Harring <ferringb@gentoo.org>
Thu, 22 Dec 2005 06:56:49 +0000 (06:56 -0000)
svn path=/main/trunk/; revision=2437

pym/portage.py

index 2423497d9e3f129d06135b0779c109e205f105c7..536795ecc6dc0f17a66f71a92ce588a9fe1c3cde 100644 (file)
@@ -2700,7 +2700,7 @@ def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,clea
                        if not os.access(mysettings["PORT_LOGDIR"],os.F_OK):
                                try:
                                        os.mkdir(mysettings["PORT_LOGDIR"])
-                               except OSError:
+                               except OSError, e:
                                        print "!!! Unable to create PORT_LOGDIR"
                                        print "!!!",e
                        if os.access(mysettings["PORT_LOGDIR"]+"/",os.W_OK):