From: Zac Medico Date: Mon, 31 Jul 2006 02:11:14 +0000 (-0000) Subject: Only ignore ENOENT in getconfig() so that more important errors don't go unnoticed. X-Git-Tag: v2.1.1~119 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bf3d1af0590f2b556e4e7fe673786a8f9d00f07d;p=portage.git Only ignore ENOENT in getconfig() so that more important errors don't go unnoticed. svn path=/main/trunk/; revision=4052 --- diff --git a/pym/portage_util.py b/pym/portage_util.py index bdd934ec3..d318f80c2 100644 --- a/pym/portage_util.py +++ b/pym/portage_util.py @@ -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)