Always no-raise try-to-pop registry addrs
parent
687852f368
commit
3dc57e384e
|
@ -1879,8 +1879,16 @@ class Arbiter(Actor):
|
||||||
sockaddr: tuple[str, int],
|
sockaddr: tuple[str, int],
|
||||||
|
|
||||||
) -> tuple[str, str]:
|
) -> tuple[str, str]:
|
||||||
uid: tuple = self._registry.inverse.pop(sockaddr)
|
uid: tuple | None = self._registry.inverse.pop(
|
||||||
|
sockaddr,
|
||||||
|
None,
|
||||||
|
)
|
||||||
|
if uid:
|
||||||
log.warning(
|
log.warning(
|
||||||
f'Deleting registry entry for {sockaddr}@{uid}!'
|
f'Deleting registry entry for {sockaddr}@{uid}!'
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
log.warning(
|
||||||
|
f'No registry entry for {sockaddr}@{uid}!'
|
||||||
|
)
|
||||||
return uid
|
return uid
|
||||||
|
|
Loading…
Reference in New Issue