indentation cleanup

This commit is contained in:
Ross Scroggs
2023-08-21 16:38:40 -07:00
parent ed073877a6
commit 7a91faab2b

View File

@@ -8951,17 +8951,17 @@ def doCheckConnection():
dns_err = None dns_err = None
ip = 'unknown' ip = 'unknown'
try: try:
ip = socket.getaddrinfo(host, None)[0][-1][0] # works with ipv6 ip = socket.getaddrinfo(host, None)[0][-1][0] # works with ipv6
except socket.gaierror as err: except socket.gaierror as err:
dns_err = f'{not_okay}\n DNS failure: {err}\n' dns_err = f'{not_okay}\n DNS failure: {err}\n'
except Exception as e: except Exception as e:
dns_err = f'{not_okay}\n Unknown DNS failure: {err}\n' dns_err = f'{not_okay}\n Unknown DNS failure: {err}\n'
check_line = f'Checking {host} ({ip}) ({try_count}/{host_count})...' check_line = f'Checking {host} ({ip}) ({try_count}/{host_count})...'
writeStdout(f'{check_line:<100}') writeStdout(f'{check_line:<100}')
flushStdout() flushStdout()
if dns_err: if dns_err:
writeStdout(dns_err) writeStdout(dns_err)
continue continue
gen_firewall = 'You probably have security software or a firewall on your machine or network that is preventing GAM from making Internet connections. Check your network configuration or try running GAM on a hotspot or home network to see if the problem exists only on your organization\'s network.' gen_firewall = 'You probably have security software or a firewall on your machine or network that is preventing GAM from making Internet connections. Check your network configuration or try running GAM on a hotspot or home network to see if the problem exists only on your organization\'s network.'
try: try:
if host.startswith('http'): if host.startswith('http'):