def _send(self, data):
    'Send data to statsd.'
    try:
        self._sock.sendto(data.encode('ascii'), self._addr)
    except (socket.error, RuntimeError):
        pass
Send data to statsd.
def _send(self, data):
    
    try:
        self._sock.sendto(data.encode('ascii'), self._addr)
    except (socket.error, RuntimeError):
        pass