Commit 45f4cec7 authored by Robin Obůrka's avatar Robin Obůrka Committed by Robin Obůrka

network: Use different exception for undefined sockets

parent 8db85217
......@@ -12,3 +12,11 @@ class InvalidMsgTypeError(InvalidMsgError):
class SockConfigError(SentinelError):
pass
class UndefinedSocketError(SentinelError):
pass
class LoopError(SentinelError):
pass
......@@ -224,7 +224,7 @@ class SN:
sock_name, sock_type = request, None
if sock_name not in self.sockets:
raise SockConfigError("Requesting undefined socket")
raise UndefinedSocketError("Requesting undefined socket")
socket = self.sockets[sock_name]
ret.append(socket.build(self.context, sock_name, sock_type))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment