Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f31cb0c

Browse files
committed
One more multiple exception catch should be in a tuple.
1 parent d78b230 commit f31cb0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def has_header(self, sample):
419419
else: # attempt typecast
420420
try:
421421
colType(header[col])
422-
except ValueError, TypeError:
422+
except (ValueError, TypeError):
423423
hasHeader += 1
424424
else:
425425
hasHeader -= 1

0 commit comments

Comments
 (0)