From: Zac Medico Date: Sat, 18 Mar 2006 22:40:42 +0000 (-0000) Subject: Stop swallowing IOError and TypeError exceptions in portdbapi.gvisible(). Write... X-Git-Tag: v2.1_pre7~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5fa4464365d60f5d4def42e80c3718c0b142272c;p=portage.git Stop swallowing IOError and TypeError exceptions in portdbapi.gvisible(). Write instances of PortageException to stderr. Thanks to marienz for reporting. svn path=/main/trunk/; revision=2945 --- diff --git a/pym/portage.py b/pym/portage.py index d713c429b..b9efd3bc8 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5167,10 +5167,14 @@ class portdbapi(dbapi): for mycpv in mylist: #we need to update this next line when we have fully integrated the new db api auxerr=0 + keys = None try: keys, eapi = db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS", "EAPI"]) - except (KeyError,IOError,TypeError): - continue + except KeyError: + pass + except PortageException, e: + writemsg("!!! Error: aux_get('%s', ['KEYWORDS', 'EAPI'])\n" % mycpv) + writemsg("!!! %s\n" % str(e)) if not keys: # KEYWORDS="" #print "!!! No KEYWORDS for "+str(mycpv)+" -- Untested Status"