fixed error code
This commit is contained in:
@@ -115,6 +115,9 @@ def create_customer_profile(customer: schemas.Customer, card_info: schemas.CardC
|
||||
logger.error(f"Full API Response: {pprint.pformat(vars(response))}")
|
||||
raise ValueError(error_msg)
|
||||
|
||||
except ValueError:
|
||||
# Re-raise specific ValueError messages we already set above (like E00039)
|
||||
raise
|
||||
except Exception as e:
|
||||
logger.error(f"A critical exception occurred during the API call: {traceback.format_exc()}")
|
||||
raise ValueError("Could not connect to the payment gateway.")
|
||||
|
||||
Reference in New Issue
Block a user