Changed to sets
This commit is contained in:
parent
fdab13e065
commit
ae22d14437
3 changed files with 56 additions and 51 deletions
|
|
@ -153,8 +153,8 @@ def getaddrinfo(sHost, sPort):
|
|||
lPair = lElts[0][-1]
|
||||
assert len(lPair) == 2, repr(lPair)
|
||||
assert type(lPair[1]) == int, repr(lPair)
|
||||
except Exception as e:
|
||||
LOG.exception(e)
|
||||
except (socket.gaierror, OSError, BaseException) as e:
|
||||
LOG.error(e)
|
||||
return None
|
||||
return lPair
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue