contact actions
This commit is contained in:
@@ -57,7 +57,7 @@ class ProductsContacts(db.Model):
|
||||
try:
|
||||
logger.info(f"About to Insert Product Contact Data {product_contact_data.member_id} ")
|
||||
db.session.add(product_contact_data)
|
||||
db.session.flush()
|
||||
db.session.commit()
|
||||
except IntegrityError as err:
|
||||
logger.error(f"Error inserting Contact Data {err} -- ")
|
||||
raise ValueError(f"Database integrity error: {err}")
|
||||
|
||||
Reference in New Issue
Block a user