The multiple exception catch should be in a tuple.

This commit is contained in:
Raymond Hettinger 2003-06-12 03:59:17 +00:00
parent fe04afc629
commit abe14e6f04

View file

@ -389,7 +389,7 @@ class Sniffer:
try: try:
thisType(row[col]) thisType(row[col])
break break
except ValueError, OverflowError: except (ValueError, OverflowError):
pass pass
else: else:
# fallback to length of string # fallback to length of string