mirror of
https://github.com/python/cpython.git
synced 2024-11-27 20:04:41 +08:00
One more multiple exception catch should be in a tuple.
This commit is contained in:
parent
d78b23025c
commit
f31cb0cbcf
@ -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…
Reference in New Issue
Block a user