mirror of https://github.com/python/cpython.git
One more multiple exception catch should be in a tuple.
This commit is contained in:
parent
d78b23025c
commit
f31cb0cbcf
|
@ -419,7 +419,7 @@ def has_header(self, sample):
|
|||
else: # attempt typecast
|
||||
try:
|
||||
colType(header[col])
|
||||
except ValueError, TypeError:
|
||||
except (ValueError, TypeError):
|
||||
hasHeader += 1
|
||||
else:
|
||||
hasHeader -= 1
|
||||
|
|
Loading…
Reference in New Issue