From 3b70a5ba4bdd0b79de553bbe22751508572c089c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 23 Jan 2019 17:22:35 -0500 Subject: [PATCH] Remove try..except around experimental code --- fosspay/blueprints/html.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/fosspay/blueprints/html.py b/fosspay/blueprints/html.py index 225923b..f8ba861 100644 --- a/fosspay/blueprints/html.py +++ b/fosspay/blueprints/html.py @@ -217,11 +217,7 @@ def donate(): db.commit() send_thank_you(user, amount, type == DonationType.monthly) - try: - send_new_donation(user, donation) - except: - # I dunno if this works and I don't have time to test it right now - print("send_new_donation is broken") + send_new_donation(user, donation) if new_account: return { "success": True, "new_account": new_account, "password_reset": user.password_reset } @@ -297,9 +293,5 @@ def cancel(id): abort(400) donation.active = False db.commit() - try: - send_cancellation_notice(user, donation) - except: - # I dunno if this works and I don't have time to test it right now - print("send_cancellation_notice is broken") + send_cancellation_notice(user, donation) return redirect("/panel")