(host_and_port)
Ensure that the IPFS daemon is running via HTTP before proceeding
Ensure that the IPFS daemon is running via HTTP before proceeding
Ensure that the IPFS daemon is running via HTTP before proceeding
def verify_daemon_is_alive(host_and_port):
    """Ensure that the IPFS daemon is running via HTTP before proceeding"""
    try:
        requests.get(f'http://{host_and_port}')
    except ConnectionError:
        print(f'Daemon is not running at http://{host_and_port}')
        sys.exit()
def verify_daemon_is_alive ( host_and_port ) : try : requests . get ( f'http://{host_and_port}' ) except ConnectionError : print ( f'Daemon is not running at http://{host_and_port}' ) sys . exit ( )