File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments