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:
parent
e48eb621cd
commit
ea10d01bfd
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user