diff --git a/Defs/Checks.py b/Defs/Checks.py index c0ebe13..2252329 100644 --- a/Defs/Checks.py +++ b/Defs/Checks.py @@ -56,11 +56,11 @@ def checkPermissions(): if os.getuid() == 0: print("{0}Permissions granted!".format(GREEN)) else: - raise PermissionError("{0}Permissions denied! Please run as '{1}sudo{0}'".format(RED, GREEN)) + print("{0}If possible!! Please run as sudo !!".format(RED)) elif systemos() == 'Windows': if ctypes.windll.shell32.IsUserAnAdmin() != 0: print("{0}Permissions granted!".format(GREEN)) else: - raise PermissionError("{0}Permissions denied! Please run as Administrator".format(RED)) + print("{0}If possible! Please run as administrator!".format(RED)) else: raise PermissionError("{0}Permissions denied! Unexpected platform".format(RED))