Fix check of incorrect api call
authorMagnus Hagander <magnus@hagander.net>
Sun, 22 Dec 2024 10:33:49 +0000 (11:33 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sun, 22 Dec 2024 10:33:49 +0000 (11:33 +0100)
We made two api calls but checked the status of the first one twice.

postgresqleu/util/payment/gocardless.py

index ca97f7db70fe3f43b509a10e709aa7b8ad8dce31..04e4171efb01f82cf444c9857585b2c7a3215aca 100644 (file)
@@ -177,7 +177,7 @@ class Gocardless(BaseManagedBankPayment):
             'agreement': r.json()['id'],
             'user_language': 'EN',
         }, timeout=20)
-        self._check_api_status(r)
+        self._check_api_status(rr)
 
         # Before we return the link, we have to store the requisition id, as that's what we'll use to
         # access accounts!