The multiple exception catch should be in a tuple.
This commit is contained in:
parent
fe04afc629
commit
abe14e6f04
|
@ -389,7 +389,7 @@ class Sniffer:
|
|||
try:
|
||||
thisType(row[col])
|
||||
break
|
||||
except ValueError, OverflowError:
|
||||
except (ValueError, OverflowError):
|
||||
pass
|
||||
else:
|
||||
# fallback to length of string
|
||||
|
|
Loading…
Reference in New Issue