mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
The multiple exception catch should be in a tuple.
This commit is contained in:
parent
fe04afc629
commit
abe14e6f04
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue