Python script is not handling TXT records well #2

Closed
opened 2022-11-27 14:38:33 +00:00 by Neshura · 7 comments
Neshura commented 2022-11-27 14:38:33 +00:00 (Migrated from gitlab.neshweb.net)

When executing using the current config this error occurs

zone_id=146d4cd6a1777376b423aaedc6824818 zone_name=neshura-server.net
Traceback (most recent call last):
  File "/home/server/DNS_Temp/./cloudflare_script.py", line 87, in <module>
    main()
  File "/home/server/DNS_Temp/./cloudflare_script.py", line 34, in main
    dns_names[dnsrecord['type']].append(dnsrecord["name"])
KeyError: 'TXT'
zone_id=146d4cd6a1777376b423aaedc6824818 zone_name=neshura-server.net
Traceback (most recent call last):
  File "/home/server/DNS_Temp/./cloudflare_script.py", line 87, in <module>
    main()
  File "/home/server/DNS_Temp/./cloudflare_script.py", line 34, in main
    dns_names[dnsrecord['type']].append(dnsrecord["name"])
KeyError: 'TXT'
When executing using the current config this error occurs ```python zone_id=146d4cd6a1777376b423aaedc6824818 zone_name=neshura-server.net Traceback (most recent call last): File "/home/server/DNS_Temp/./cloudflare_script.py", line 87, in <module> main() File "/home/server/DNS_Temp/./cloudflare_script.py", line 34, in main dns_names[dnsrecord['type']].append(dnsrecord["name"]) KeyError: 'TXT' zone_id=146d4cd6a1777376b423aaedc6824818 zone_name=neshura-server.net Traceback (most recent call last): File "/home/server/DNS_Temp/./cloudflare_script.py", line 87, in <module> main() File "/home/server/DNS_Temp/./cloudflare_script.py", line 34, in main dns_names[dnsrecord['type']].append(dnsrecord["name"]) KeyError: 'TXT' ```
Neshura commented 2022-11-27 14:38:33 +00:00 (Migrated from gitlab.neshweb.net)

assigned to @Firq

assigned to @Firq
Neshura commented 2022-11-27 14:48:32 +00:00 (Migrated from gitlab.neshweb.net)

mentioned in commit 871513c936

mentioned in commit 871513c9363b3eb54820ff0538ecbc38877fee45
Neshura commented 2022-11-27 15:11:16 +00:00 (Migrated from gitlab.neshweb.net)

mentioned in commit 35571a68c1

mentioned in commit 35571a68c150df9084430272d057c6c7159012aa
Firq commented 2022-11-27 17:05:03 +00:00 (Migrated from gitlab.neshweb.net)

created branch 2-python-script-is-not-handling-txt-records-well to address this issue

created branch [`2-python-script-is-not-handling-txt-records-well`](/Neshura/cloudflare-dns-updater/-/compare/main...2-python-script-is-not-handling-txt-records-well) to address this issue
Firq commented 2022-11-27 17:09:51 +00:00 (Migrated from gitlab.neshweb.net)

mentioned in merge request !2

mentioned in merge request !2
Neshura commented 2022-11-27 17:52:19 +00:00 (Migrated from gitlab.neshweb.net)

mentioned in commit fd19efd007

mentioned in commit fd19efd007e8c3803012cf7eec50c4c3c4d1e0b6
Neshura commented 2022-11-27 18:22:15 +00:00 (Migrated from gitlab.neshweb.net)

Closed in !2

Closed in !2
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Neshura/cloudflare-dns-updater#2
No description provided.