handle donations for failed charges

pull/43/head
eric 2017-04-04 18:39:40 -04:00
parent 5756f171dc
commit f65c7735f8
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,8 @@ transaction_charged.connect(handle_transaction_charged)
# dealing with failed transactions # dealing with failed transactions
def handle_transaction_failed(sender,transaction=None, **kwargs): def handle_transaction_failed(sender,transaction=None, **kwargs):
if transaction is None or transaction.campaign.type == THANKS: if transaction is None or transaction.campaign == None or transaction.campaign.type == THANKS:
# no need to nag a failed THANKS transaction # no need to nag a failed THANKS or DONATION transaction
return return
# window for recharging # window for recharging