if you're going to print an exception, bind the exception to a var...
authorBrian Harring <ferringb@gentoo.org>
Thu, 22 Dec 2005 06:55:41 +0000 (06:55 -0000)
committerBrian Harring <ferringb@gentoo.org>
Thu, 22 Dec 2005 06:55:41 +0000 (06:55 -0000)
svn path=/main/branches/prefix/; revision=2436

pym/portage.py

index b3e7fecaf8d0d36f16f26038fb9580289067b519..b4033a23fcfe73368525ac1f1d942c53b955097c 100644 (file)
@@ -2693,7 +2693,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):