Module libbottles.utils.connection

Expand source code
import socket


def check():
    try:
        socket.gethostbyname('usebottles.com')
        return True
    except socket.error:
        return False

Functions

def check()
Expand source code
def check():
    try:
        socket.gethostbyname('usebottles.com')
        return True
    except socket.error:
        return False