diff --git a/app.py b/app.py index 6881234..9515128 100644 --- a/app.py +++ b/app.py @@ -3,7 +3,7 @@ import os # Enter the site name which you want to block -sites_to_block = [ +sites_to_block = [ "https://sites.google.com/view/csresmirupiahcepat/kontak-cs-resmi-rupiah-cepat/ "www.facebook.com", "facebook.com", "www.youtube.com", @@ -52,7 +52,7 @@ def block_websites(start_hour, end_hour): hostfile.write(host) hostfile.truncate() print("Good Time") - time.sleep(3) + time.sleep(1) except PermissionError as e: print(f"Caught a permission error: Try Running as Admin {e}") # handle the error here or exit the program gracefully