except Exception as e:
This commit is contained in:
@@ -54,11 +54,12 @@ class Repayment(db.Model):
|
||||
|
||||
try:
|
||||
logger.info(f"repayment_data-LoanStatus- data: {repayment_data['LoanStatus']}")
|
||||
except IntegrityError as err:
|
||||
except Exception as e:
|
||||
logger.error(f"Bad data LoanStatus 777777 error: {e}")
|
||||
llogger.info(f"LoanStatus 2222222 data: {repayment_data.LoanStatus}")
|
||||
|
||||
|
||||
|
||||
|
||||
if repayment_data["LoanStatus"] not in [LoanStatus.ACTIVE, LoanStatus.START_REPAY]:
|
||||
raise ValueError(f"Repayment cannot be processed. Loan status: ({repayment_data["LoanStatus"]})")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user