Remove try..except around experimental code
This commit is contained in:
parent
17cb1c621b
commit
3b70a5ba4b
|
@ -217,11 +217,7 @@ def donate():
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
send_thank_you(user, amount, type == DonationType.monthly)
|
send_thank_you(user, amount, type == DonationType.monthly)
|
||||||
try:
|
send_new_donation(user, donation)
|
||||||
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")
|
|
||||||
|
|
||||||
if new_account:
|
if new_account:
|
||||||
return { "success": True, "new_account": new_account, "password_reset": user.password_reset }
|
return { "success": True, "new_account": new_account, "password_reset": user.password_reset }
|
||||||
|
@ -297,9 +293,5 @@ def cancel(id):
|
||||||
abort(400)
|
abort(400)
|
||||||
donation.active = False
|
donation.active = False
|
||||||
db.commit()
|
db.commit()
|
||||||
try:
|
send_cancellation_notice(user, donation)
|
||||||
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")
|
|
||||||
return redirect("/panel")
|
return redirect("/panel")
|
||||||
|
|
Loading…
Reference in New Issue