Fix two misspellings of status
authorMagnus Hagander <magnus@hagander.net>
Wed, 4 Sep 2024 15:35:03 +0000 (17:35 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 4 Sep 2024 15:35:14 +0000 (17:35 +0200)
postgresqleu/digisign/implementations/signwell.py
postgresqleu/util/messaging/linkedin.py

index 877340e0491c3e9d450d57c483419895f5fee5f7..d6cf850afbaa16f5599845c78dcf3b69f3f725b5 100644 (file)
@@ -307,7 +307,7 @@ class Signwell(BaseProvider):
         data = j['event']['type'] + '@' + str(j['event']['time'])
         calculated_signature = hmac.new(self.provider.config['webhookid'].encode(), data.encode(), hashlib.sha256).hexdigest()
         if not hmac.compare_digest(j['event']['hash'], calculated_signature):
-            return HttpResponse("Invalid signature", sstatus=400)
+            return HttpResponse("Invalid signature", status=400)
 
         docid = j.get('data', {}).get('object', {}).get('id', None)
         if docid:
index 8aaaa815024314a27cc99506f227ba56c8ac9bd4..bd39cbc0698aaab47b2cd9dc05311d6005482de4 100644 (file)
@@ -294,7 +294,7 @@ class Linkedin(object):
             },
         )
         if r.status_code != 200:
-            return False, "Failed to get post (sstatus {}): {}".format(r.status_code, r.text)
+            return False, "Failed to get post (status {}): {}".format(r.status_code, r.text)
         # We can't really check that there is at least one post returned, because there might
         # be no posts available. But at least this way we have verified that the token is OK.
         return True, ''