Skip to content

Commit

Permalink
fix: add missing 'raise' in front of error
Browse files Browse the repository at this point in the history
  • Loading branch information
hlibbabii committed Jan 9, 2021
1 parent e08236b commit 62a38f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bohr/datasets/templates/loaders/from_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(
def load(self) -> pd.DataFrame:
artifact_df = pd.read_csv(self.path_to_file, nrows=self.n_rows, sep=self.sep)
if artifact_df.empty:
ValueError(
raise ValueError(
f"Dataframe is empty, path: {self.path_to_file}, n_rows={self.n_rows}"
)
return artifact_df

0 comments on commit 62a38f4

Please sign in to comment.