Commit 0df903cf authored by Robin Obůrka's avatar Robin Obůrka

Move exceptions to separate module

parent 3de61af5
from sn.exceptions import *
from sn.messages import *
from sn.argparser import *
from sn.network import *
class SentinelError(Exception):
pass
class InvalidMsgError(SentinelError):
pass
class SockConfigError(SentinelError):
pass
import msgpack
from .exceptions import *
def parse_msg(data):
""" Gets a Sentinel-type ZMQ message and parses message type and its
......
......@@ -3,18 +3,7 @@ import zmq
from collections import namedtuple
from .argparser import get_arg_parser, parse
class SentinelError(Exception):
pass
class InvalidMsgError(SentinelError):
pass
class SockConfigError(SentinelError):
pass
from .exceptions import *
def resource_parser(config_list):
""" Gets a tuple of command line arguments - each for one socket connection
......
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