diff --git a/src/utils.py b/src/utils.py index 420e4fc..f767308 100644 --- a/src/utils.py +++ b/src/utils.py @@ -96,7 +96,7 @@ def load_object(file_path): return dill.load(file_obj) except Exception as e: - raise CustomException(e, sys) + raise CustomException(e, sys) from e def print_bankruptcy_outcome(pred_result): @@ -112,4 +112,4 @@ def print_bankruptcy_outcome(pred_result): if pred_result >= 0.5: return "Bad news! The company is predicted to be bankrupt within 3 years." return ("Good news! The company is " - "predicted to continue operating successfully for the next 3 years.") \ No newline at end of file + "predicted to continue operating successfully for the next 3 years.")