[fix]: env in docker config
This commit is contained in:
@@ -60,7 +60,7 @@ class EligibilityCheckService(BaseService):
|
||||
}
|
||||
|
||||
return response_data
|
||||
except ValidationError as err:
|
||||
except (ValidationError, ValueError) as err:
|
||||
logger.error(f"Validation Error: {err.messages}")
|
||||
return jsonify({
|
||||
"message": "Validation exception"
|
||||
|
||||
@@ -17,6 +17,9 @@ class Transaction(db.Model):
|
||||
|
||||
@classmethod
|
||||
def create_transaction(cls, id, account_id, customer_id, type, channel, msisdn, country_code,):
|
||||
if cls.query.filter_by(id=id).first():
|
||||
raise ValueError("Transaction with this id already exists")
|
||||
|
||||
transaction = cls(
|
||||
id=id,
|
||||
customer_id=customer_id,
|
||||
|
||||
Reference in New Issue
Block a user