Skip to content

Commit

Permalink
Update src/spark/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: MrCreosote <[email protected]>
  • Loading branch information
Tianhao-Gu and MrCreosote authored Jun 6, 2024
1 parent 2583acb commit faf3381
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spark/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def _detect_delimiter(sample: str) -> str:
dialect = sniffer.sniff(sample)
return dialect.delimiter
except Exception as e:
raise ValueError(f"Delimiter could not be detected: {e}. Please provide the delimiter explicitly.")
raise ValueError(

Check warning on line 145 in src/spark/utils.py

View check run for this annotation

Codecov / codecov/patch

src/spark/utils.py#L140-L145

Added lines #L140 - L145 were not covered by tests
f"Delimiter could not be detected: {e}. Please provide the delimiter explicitly.") from e


def read_csv(
Expand Down

0 comments on commit faf3381

Please sign in to comment.