1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

tests/krb5: Remove unreachable exception handlers

‘IOError’ is a subclass of ‘error’, which has already been handled.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-10-18 16:05:17 +13:00 committed by Andrew Bartlett
parent e48eb621cd
commit ea10d01bfd

View File

@ -836,9 +836,6 @@ class RawKerberosTest(TestCase):
except socket.error:
self.s.close()
raise
except IOError:
self.s.close()
raise
def connect(self, host, port=None):
self.assertNotConnected()
@ -1142,9 +1139,6 @@ class RawKerberosTest(TestCase):
except socket.error as e:
self._disconnect("send_msg: %s" % e)
raise
except IOError as e:
self._disconnect("send_msg: %s" % e)
raise
def recv_raw(self, num_recv=0xffff, hexdump=None, timeout=None):
rep_pdu = None
@ -1163,9 +1157,6 @@ class RawKerberosTest(TestCase):
except socket.error as e:
self._disconnect("recv_raw: %s" % e)
raise
except IOError as e:
self._disconnect("recv_raw: %s" % e)
raise
return rep_pdu
def recv_pdu_raw(self, asn1_print=None, hexdump=None, timeout=None):