From dd231a16a338cfe63d12cadf0fc3e2ebe7cac828 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 15 Jan 2019 08:45:26 -0800 Subject: [PATCH] python: dns_hub: Fix indentation of 'raise' on error. Remove second socket.sendto(). Signed-off-by: Jeremy Allison Reviewed-by: Andreas Schneider --- python/samba/tests/dns_forwarder_helpers/dns_hub.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/samba/tests/dns_forwarder_helpers/dns_hub.py b/python/samba/tests/dns_forwarder_helpers/dns_hub.py index 81aa478f4ba..cf9beb7fa7a 100755 --- a/python/samba/tests/dns_forwarder_helpers/dns_hub.py +++ b/python/samba/tests/dns_forwarder_helpers/dns_hub.py @@ -123,9 +123,7 @@ class DnsHandler(sserver.BaseRequestHandler): except socket.error as err: print("Error sending %s to address %s for name %s: %s\n" % (forwarder, self.client_address, name, err.errno)) - raise - - socket.sendto(send_packet, self.client_address) + raise class server_thread(threading.Thread): def __init__(self, server):