From ee6c173cc45bb40ecc7052fe740a33072a11051c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 1 Mar 2007 03:35:39 +0000 Subject: For bug #168823, fix broken except statement syntax that prevents the ValueError from being caught as intended. svn path=/main/trunk/; revision=6102 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.2.3-1-g7c22