From bf3d1af0590f2b556e4e7fe673786a8f9d00f07d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 31 Jul 2006 02:11:14 +0000 Subject: [PATCH] Only ignore ENOENT in getconfig() so that more important errors don't go unnoticed. svn path=/main/trunk/; revision=4052 --- pym/portage_util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.26.2