Kaydet (Commit) b3cda98d authored tarafından Georg Brandl's avatar Georg Brandl

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

üst 7ae60187
...@@ -453,7 +453,7 @@ def _check_duration(option, opt, value): ...@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment