Skip to content

Commit d659983

Browse files
committed
Correct condition
1 parent 004aaaa commit d659983

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: pandas/io/parsers/readers.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -716,10 +716,8 @@ def _read(
716716
parser = TextFileReader(filepath_or_buffer, **kwds)
717717
except pandas.errors.EmptyDataError:
718718
if kwds.get("return_empty", False):
719-
raise
720-
else:
721719
return DataFrame()
722-
720+
raise
723721

724722
if chunksize or iterator:
725723
return parser

0 commit comments

Comments
 (0)