diff options
author | Jeremy Allison <jra@samba.org> | 2019-01-15 08:45:26 -0800 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-02-05 20:41:24 +0100 |
commit | 6990f5018d90ba9be680f50cc812fafc73f67d7c (patch) | |
tree | 189607a273426ab75efae125af91a03b287ee8b4 | |
parent | 56549fd07d690e8fe615f5dd291c1d798045a03b (diff) | |
download | samba-6990f5018d90ba9be680f50cc812fafc73f67d7c.tar.gz |
python: dns_hub: Fix indentation of 'raise' on error.
Remove second socket.sendto().
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13750
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit dd231a16a338cfe63d12cadf0fc3e2ebe7cac828)
-rwxr-xr-x | python/samba/tests/dns_forwarder_helpers/dns_hub.py | 4 |
1 files changed, 1 insertions, 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): |