Skip to content

Commit 1fdabbc

Browse files
author
y-p
committed
CLN: elminate testing warning on 2.6, deprecated exception idiom
1 parent b0a8ba0 commit 1fdabbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ def _get_lines(self, rows=None):
15221522
new_rows.append(next(source))
15231523
rows += 1
15241524
except csv.Error, inst:
1525-
if 'newline inside string' in inst.message:
1525+
if 'newline inside string' in str(inst):
15261526
row_num = str(self.pos + rows)
15271527
msg = ('EOF inside string starting with line '
15281528
+ row_num)

0 commit comments

Comments
 (0)