From: Cameron Patrick Date: Sun, 1 Aug 2004 04:25:54 +0000 (+0000) Subject: use LATClientException not just Exception X-Git-Tag: IMPORT-FROM-UCCCVS~110 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=98bc2e53492e4e116059d9e695a83ee0ed368312;p=uccvend-vendserver.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: