summaryrefslogtreecommitdiff
path: root/postgresqleu/paypal
diff options
context:
space:
mode:
authorMagnus Hagander2019-02-08 10:40:34 +0000
committerMagnus Hagander2019-02-08 10:40:34 +0000
commitb0677d01b86b5d4d4515333e0a714c874e580e28 (patch)
tree079b58a12d53aead9bacff6a1707d3308662fccf /postgresqleu/paypal
parent8685f1b997055405decfc8ee3e3b8dd81a78418d (diff)
Complete the band-aid fix
Diffstat (limited to 'postgresqleu/paypal')
-rw-r--r--postgresqleu/paypal/management/commands/paypal_fetch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/paypal/management/commands/paypal_fetch.py b/postgresqleu/paypal/management/commands/paypal_fetch.py
index 7da4ad28..5025af56 100644
--- a/postgresqleu/paypal/management/commands/paypal_fetch.py
+++ b/postgresqleu/paypal/management/commands/paypal_fetch.py
@@ -104,7 +104,7 @@ class PaypalTransfer(PaypalBaseTransaction):
self.transinfo.sender = 'treasurer@postgresql.eu'
if apistruct.get('CURRENCYCODE', None) != settings.CURRENCY_ISO:
self.message = "Invalid currency %s" % apistruct.get('CURRENCYCODE', '*UNKNOWN*')
- self.transinfo.transtext += ' (currency %s, manually adjust amount!)' % apistruct['CURRENCYCODE']
+ self.transinfo.transtext += ' (currency %s, manually adjust amount!)' % apistruct.get('CURRENCYCODE', '*UNKNOWN*')
self.transinfo.amount = -1 # To be on the safe side
def fetch_details(self, api):