From 011bf80f85f84d970d40deb0024dc89619f39149 Mon Sep 17 00:00:00 2001 From: Heis5ecure <148627666+Heis5ecure@users.noreply.github.com> Date: Sun, 12 Nov 2023 19:45:20 +0330 Subject: [PATCH] Update DNS Fixer.py adding comments --- DNS Fixer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DNS Fixer.py b/DNS Fixer.py index 1f67726..46f7fe7 100644 --- a/DNS Fixer.py +++ b/DNS Fixer.py @@ -1,6 +1,6 @@ import requests import os - +#at the moment this code only checks if it is running with root privileges and checks your internet connection url = "https://www.google.com/" timeout = 5 @@ -10,8 +10,9 @@ request = requests.get(url, timeout=timeout) print(request) print("Connected to the Internet") + #this code is not completed it will be updated with a working cod except (requests.ConnectionError, requests.Timeout) as exception: print("No internet connection.") else: - print("Please run this script with root Privileages.") \ No newline at end of file + print("Please run this script with root Privileages.")