mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
Im so ashamed of myself. Sorry PEP8
This commit is contained in:
@@ -34,7 +34,8 @@ class DjrillApiJsonObjectsMixin(object):
|
||||
|
||||
def get_json_objects(self):
|
||||
payload = json.dumps({"key": self.api_key})
|
||||
req = requests.post("%s/%s" % (self.api_url, self.api_uri), data=payload)
|
||||
req = requests.post("%s/%s" % (self.api_url, self.api_uri),
|
||||
data=payload)
|
||||
if req.status_code == 200:
|
||||
return req.content
|
||||
raise Exception("OH GOD, NO!")
|
||||
|
||||
Reference in New Issue
Block a user