svn path=/main/trunk/; revision=5584
for x in candidate_list:
try:
result = pkgcmp(pkgsplit(x), mysplit)
- except ValueError:
+ except ValueError: # pkgcmp may return ValueError during int() conversion
writemsg("\nInvalid package name: %s\n" % x, noiselevel=-1)
raise
if result is None:
func(*targs, **kargs)
except SystemExit:
exc_info = sys.exc_info()
- except:
+ except: # No idea what they called, so we need this broad except here.
dump_traceback("Error in portage_exec.run_exitfuncs", noiselevel=0)
exc_info = sys.exc_info()
try:
int(myrev[1:])
revok=1
- except ValueError:
+ except ValueError: # from int()
pass
if revok:
verPos = -2