mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
||||
try:
|
||||
colType(header[col])
|
||||
except ValueError, TypeError:
|
||||
except (ValueError, TypeError):
|
||||
hasHeader += 1
|
||||
else:
|
||||
hasHeader -= 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue