From: Cameron Patrick Date: Sun, 1 Aug 2004 04:25:54 +0000 (+0000) Subject: use LATClientException not just Exception X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=312dc943f2731acc8fc8b8b5cc186941169bd898;p=zanchey%2Fdispense2.git use LATClientException not just Exception --- diff --git a/sql-edition/servers/LATClient.py b/sql-edition/servers/LATClient.py index 362a452..b7818de 100644 --- a/sql-edition/servers/LATClient.py +++ b/sql-edition/servers/LATClient.py @@ -10,6 +10,8 @@ LATCP_CMD_VERSION = 8 LATCP_CMD_TERMINALSESSION = 26 LATCP_CMD_ERRORMSG = 99 +class LATClientException(Exception): pass + class LATClient: def __init__(self, service = None, node = None, port = None, localport = None, password = None, is_queued = False, @@ -42,7 +44,7 @@ class LATClient: )) (cmd, msg) = self.read_reply() if ord(cmd) == LATCP_CMD_ERRORMSG: - raise Exception('LATClient: '+msg) + raise LATClientException(msg) r = select([self.sock], [], [], 2.0)[0] if r: