Only ignore ENOENT in getconfig() so that more important errors don't go unnoticed.
authorZac Medico <zmedico@gentoo.org>
Mon, 31 Jul 2006 02:11:14 +0000 (02:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 31 Jul 2006 02:11:14 +0000 (02:11 -0000)
svn path=/main/trunk/; revision=4052

pym/portage_util.py

index bdd934ec3baefe378c0b07b778fb2b195d31e3b9..d318f80c27cd0e004aef40b54054a930bf36479a 100644 (file)
@@ -231,7 +231,9 @@ def getconfig(mycfg,tolerant=0,allow_sourcing=False):
        mykeys={}
        try:
                f=open(mycfg,'r')
-       except IOError:
+       except IOError, e:
+               if e.errno != errno.ENOENT:
+                       raise
                return None
        try:
                lex=shlex.shlex(f)