Skip to content

Commit c26b23a

Browse files
committed
fix: remove raising of undefined exception variable
1 parent 82297f8 commit c26b23a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/readii/data/label.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import re
22
from pandas import DataFrame, Series
33
import numpy as np
4-
import pandas as pd
54
from typing import Optional
65

76
from readii.utils import logger
@@ -256,7 +255,7 @@ def eventOutcomeColumnSetup(dataframe_with_outcome:DataFrame,
256255
if set(existing_event_values) != set(event_column_value_mapping.keys()):
257256
msg = f"Not all event values in {outcome_column_label} are handled by the provided event_column_value_mapping dictionary."
258257
logger.exception(msg)
259-
raise e
258+
raise ValueError()
260259

261260
# TODO: add handling for values not in the dictionary
262261

0 commit comments

Comments
 (0)