Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit dd6d802

Browse files
authored
typo in cloudflare.py
fixed ability to add email-fwdr here's my code if anyone wants to add an email request validation: ```python cf = CloudFlare(email=CLOUDFLARE_EMAIL, token=CLOUDFLARE_TOKEN) cf.add('VOID', "accounts", "email-fwdr") cf.add('AUTH', "accounts", "email-fwdr", "addresses") data = json.dumps({"email": email}) cf.accounts.email_fwdr.addresses.post(CLOUDFLARE_ACCOUNT, data=data) ```
1 parent 4c80399 commit dd6d802

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CloudFlare/cloudflare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ def add(self, t, p1, p2=None, p3=None):
826826
for element in a[0:-1]:
827827
try:
828828
if '-' in element:
829-
branch = getattr(element, element.replace('-','_'))
829+
branch = getattr(branch, element.replace('-','_'))
830830
else:
831831
branch = getattr(branch, element)
832832
except:

0 commit comments

Comments
 (0)