🪵 Reduced duplicate logs [your SD card(s) will thank me]

This commit is contained in:
Timothy Miller 2021-03-01 00:18:37 -05:00
parent 3cd26feb03
commit 975fba4d42

View File

@ -54,7 +54,7 @@ def getIPs():
except Exception: except Exception:
if not shown_ipv4_warning: if not shown_ipv4_warning:
shown_ipv4_warning = True shown_ipv4_warning = True
print("😨 Warning: IPv4 not detected.") print("😨 Warning: IPv4 not detected")
deleteEntries("A") deleteEntries("A")
try: try:
aaaa = requests.get("https://[2606:4700:4700::1111]/cdn-cgi/trace").text.split("\n") aaaa = requests.get("https://[2606:4700:4700::1111]/cdn-cgi/trace").text.split("\n")
@ -63,7 +63,7 @@ def getIPs():
except Exception: except Exception:
if not shown_ipv6_warning: if not shown_ipv6_warning:
shown_ipv6_warning = True shown_ipv6_warning = True
print("😨 Warning: IPv6 not detected.") print("😨 Warning: IPv6 not detected")
deleteEntries("AAAA") deleteEntries("AAAA")
ips = [] ips = []
if(a is not None): if(a is not None):