mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
One more multiple exception catch should be in a tuple.
This commit is contained in:
parent
d78b23025c
commit
f31cb0cbcf
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ class Sniffer:
|
||||||
else: # attempt typecast
|
else: # attempt typecast
|
||||||
try:
|
try:
|
||||||
colType(header[col])
|
colType(header[col])
|
||||||
except ValueError, TypeError:
|
except (ValueError, TypeError):
|
||||||
hasHeader += 1
|
hasHeader += 1
|
||||||
else:
|
else:
|
||||||
hasHeader -= 1
|
hasHeader -= 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue