[yum-commits] Branch 'yum-3_2_X' - yum/misc.py
skvidal at osuosl.org
skvidal at osuosl.org
Tue Feb 16 15:43:10 UTC 2010
yum/misc.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d2ad89def1001f53cb9a72b8f9cb14fbd9316d17
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Tue Feb 16 10:42:54 2010 -0500
can also raise ValueError, when attempting to pass non-int-able strings to int() and FlagtoString
catch it
diff --git a/yum/misc.py b/yum/misc.py
index 6d325bf..70ccb0a 100644
--- a/yum/misc.py
+++ b/yum/misc.py
@@ -651,7 +651,7 @@ def string_to_prco_tuple(prcoString):
if f not in constants.SYMBOLFLAGS:
try:
f = flagToString(int(f))
- except TypeError, e:
+ except (ValueError,TypeError), e:
raise Errors.MiscError, 'Invalid version flag: %s' % f
else:
f = constants.SYMBOLFLAGS[f]
More information about the Yum-commits
mailing list