Fix wrong usage of "except X, Y:".

This commit is contained in:
Georg Brandl 2010-02-07 12:19:43 +00:00
parent 7ae6018788
commit b3cda98dd1

View file

@ -453,7 +453,7 @@ def _check_duration(option, opt, value):
return int(value) return int(value)
else: else:
return int(value[:-1]) * _time_units[value[-1]] return int(value[:-1]) * _time_units[value[-1]]
except ValueError, IndexError: except (ValueError, IndexError):
raise OptionValueError( raise OptionValueError(
'option %s: invalid duration: %r' % (opt, value)) 'option %s: invalid duration: %r' % (opt, value))