Skip to content

Commit abe14e6

Browse files
committed
The multiple exception catch should be in a tuple.
1 parent fe04afc commit abe14e6

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
@@ -389,7 +389,7 @@ def has_header(self, sample):
389389
try:
390390
thisType(row[col])
391391
break
392-
except ValueError, OverflowError:
392+
except (ValueError, OverflowError):
393393
pass
394394
else:
395395
# fallback to length of string

0 commit comments

Comments
 (0)