summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-01 03:35:39 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-01 03:35:39 +0000
commitee6c173cc45bb40ecc7052fe740a33072a11051c (patch)
treefbde0ef86892f98dfc8b96b4a8e70614c4ef7b4e
parent7c80c65ee1ae24a45077014cd5448e1c3e4064eb (diff)
downloadportage-ee6c173cc45bb40ecc7052fe740a33072a11051c.tar.gz
portage-ee6c173cc45bb40ecc7052fe740a33072a11051c.tar.bz2
portage-ee6c173cc45bb40ecc7052fe740a33072a11051c.zip
For bug #168823, fix broken except statement syntax that prevents the ValueError from being caught as intended.
svn path=/main/trunk/; revision=6102
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index ec4c2db33..e0359e476 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -67,7 +67,7 @@ class vardbapi(dbapi):
"This method will grab the COUNTER. Returns a counter value."
try:
return long(self.aux_get(mycpv, ["COUNTER"])[0])
- except KeyError, ValueError:
+ except (KeyError, ValueError):
pass
cdir = self.getpath(mycpv)
cpath = self.getpath(mycpv, filename="COUNTER")