def CheckConnection(self) -> str:
    if config.CONFIGURATION['Update']['SkipCheck']:
        return 'Skipping update check'
    try:
        urllib.request.urlopen('http://google.com')
        return True
    except Exception as e:
        return 'Unable to connect to the internet'
def CheckConnection(self) -> str:
    if config.CONFIGURATION['Update']['SkipCheck']:
        return 'Skipping update check'
    try:
        urllib.request.urlopen('http://google.com')
        return True
    except Exception as e:
        return 'Unable to connect to the internet'