From 3fbe2f7b3b4150de9111a7355a8e2114683efd24 Mon Sep 17 00:00:00 2001 From: Usama Abdul Sattar Date: Fri, 26 Apr 2019 14:33:36 +0500 Subject: [PATCH] Update Checks.py --- Defs/Checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Defs/Checks.py b/Defs/Checks.py index 0aab3f8..098d3de 100644 --- a/Defs/Checks.py +++ b/Defs/Checks.py @@ -18,7 +18,7 @@ languageSelector() def checkConnection(host='https://google.com'): #Connection check system('clear') try: - urlopen(host) + urlopen(host, timeout=5) print(_("{0}HURRAY!! Internet is available.. We can Continue{1}").format(GREEN, DEFAULT)) return True except: