Skip to content

Commit

Permalink
complete pylint utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinSekYi committed Jul 7, 2024
1 parent 00cc870 commit 83655cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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.")
"predicted to continue operating successfully for the next 3 years.")

0 comments on commit 83655cf

Please sign in to comment.