From 98bc2e53492e4e116059d9e695a83ee0ed368312 Mon Sep 17 00:00:00 2001 From: Cameron Patrick Date: Sun, 1 Aug 2004 04:25:54 +0000 Subject: [PATCH] use LATClientException not just Exception --- sql-edition/servers/LATClient.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.20.1