Skip to content

Commit e6fc911

Browse files
Tiny commit
1 parent c7ef11f commit e6fc911

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unboxapi/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def create_project(
108108
try:
109109
project_schema.load({"name": name, "description": description})
110110
except ValidationError as err:
111-
raise UnboxValidationError(self._format_error_message(err))
111+
raise UnboxValidationError(self._format_error_message(err)) from None
112112

113113
endpoint = "initialize_project"
114114
payload = dict(
@@ -1041,7 +1041,7 @@ def add_dataframe(
10411041
if not isinstance(df, pd.DataFrame):
10421042
raise UnboxValidationError(
10431043
f"- `df` is a {type(df)}, but it must be a pandas dataframe (pd.DataFrame). \n"
1044-
)
1044+
) from None
10451045
with tempfile.TemporaryDirectory() as tmp_dir:
10461046
file_path = os.path.join(tmp_dir, str(uuid.uuid1()))
10471047
df.to_csv(file_path, index=False)

0 commit comments

Comments
 (0)