try:
http_client = httpclient.HTTPClient()
response = http_client.fetch(AWS_CHECK_IP, request_timeout=1)
external_ip = response.body.strip()
except (httpclient.HTTPError, RuntimeError) as e:
LOGGER.error(f"Error connecting to {AWS_CHECK_IP}: {e}")
finally:
if http_client is not None:
After Change
print("=============================================================")
print("Open one of the URLs below in your browser within %s seconds."
% timeout_secs)
print("External URL:", external_url)
print("Internal URL:", lan_url)
print("=============================================================")
def _launch_web_client(name):