try catch

This commit is contained in:
CHIEFSOFT\ameye
2025-08-27 07:54:40 -04:00
parent 0d8e41b6cd
commit 6bea9d2ee5
+16 -4
View File
@@ -244,10 +244,22 @@ def stripe_payments_webhook_post():
@api.route("/stripe/payments", methods=["GET"]) @api.route("/stripe/payments", methods=["GET"])
def stripe_payments_webhook_get(): def stripe_payments_webhook_get():
data = request.args() try:
logger.info(f"Route Stripe Webhook GET ==>>>> {data}") data = request.args()
# response = MyProductsService.process_provision_actions(data) logger.info(f"Route Stripe Webhook GET ==>>>> {data}")
return [] # response = MyProductsService.process_provision_actions(data)
return []
except Exception as e:
# A general exception handler for any other type of exception
logger.error(f"An unexpected error occurred: {e}")
else:
# Code to execute if no exception occurs in the try block
logger.info("Operation successful!")
finally:
# Code that will always execute, regardless of whether an exception occurred or not
logger.info("This block always runs.")
# /panel/account/calendar # /panel/account/calendar
@api.route("/panel/account/calendar", methods=["POST"]) @api.route("/panel/account/calendar", methods=["POST"])