Skip to content

Commit

Permalink
Updating ValueError on empty bytes for clarity (#2939)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjermain committed Mar 21, 2022
1 parent c5a0573 commit b4707f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def read_csv(
projection, columns = handle_projection_columns(columns)

if isinstance(file, bytes) and len(file) == 0:
raise ValueError("no date in bytes")
raise ValueError("Empty bytes data provided")

storage_options = storage_options or {}

Expand Down

0 comments on commit b4707f0

Please sign in to comment.