From: Brian Harring Date: Thu, 22 Dec 2005 06:55:41 +0000 (-0000) Subject: if you're going to print an exception, bind the exception to a var... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2ba080da371b1ee2525a2b472e2cf8de9a356fbc;p=portage.git if you're going to print an exception, bind the exception to a var... svn path=/main/branches/prefix/; revision=2436 --- diff --git a/pym/portage.py b/pym/portage.py index b3e7fecaf..b4033a23f 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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):