From 40160122bee77d1c34ed05157546c9d72eadd368 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 16 May 2012 16:57:58 -0700 Subject: [PATCH] getconfig: only raise ParseError --- pym/portage/util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py index 4797f53e4..2e0a32bb0 100644 --- a/pym/portage/util/__init__.py +++ b/pym/portage/util/__init__.py @@ -607,7 +607,7 @@ def getconfig(mycfg, tolerant=0, allow_sourcing=False, expand=True): msg = lex.error_leader() + \ _("Invalid token '%s' (not '=')") % (equ,) if not tolerant: - raise Exception(msg) + raise ParseError(msg) else: writemsg("%s\n" % msg, noiselevel=-1) return mykeys -- 2.26.2