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
1 changed files with 1 additions and 1 deletions

View File

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