summaryrefslogtreecommitdiff
path: root/postgresqleu
diff options
context:
space:
mode:
authorMagnus Hagander2016-12-27 15:32:42 +0000
committerMagnus Hagander2016-12-27 15:32:42 +0000
commit62086e56222e17b41bf757ad6789e3bc86598825 (patch)
tree159703a29750e8b92dcee1a95c16c571e7266709 /postgresqleu
parent0147465f7b53db8bd157cdf8d6a086662fb34aa7 (diff)
Abandoned transactions can receive cancel notices
This is normal, not a fatal error.
Diffstat (limited to 'postgresqleu')
-rw-r--r--postgresqleu/trustlypayment/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/trustlypayment/util.py b/postgresqleu/trustlypayment/util.py
index 7fdbdb06..b12418f6 100644
--- a/postgresqleu/trustlypayment/util.py
+++ b/postgresqleu/trustlypayment/util.py
@@ -119,7 +119,7 @@ class Trustly(TrustlyWrapper):
try:
trans = TrustlyTransaction.objects.get(orderid=notification.orderid)
except TrustlyTransaction.DoesNotExist:
- self.log_and_email("Transaction {0} for notification {1} not found to cancel!".format(notification.orderid, notification.id))
+ TrustlyLog("Abandoned transaction {0} canceled from notification".format(notification.orderid))
return False
if trans.pendingat:
self.log_and_email("Transaction {0} canceled by notification {1} but already in progress. Ignoring cancel!".format(notification.orderid, notification.id))