handle donations for failed charges
parent
5756f171dc
commit
f65c7735f8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue