Commit 1ec19260 authored by Vincent Pelletier's avatar Vincent Pelletier

Raise a more specific exception when master connection was interrupted....

Raise a more specific exception when master connection was interrupted. NotReadyException should fit this use.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1071 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 186ec9ae
......@@ -54,7 +54,7 @@ class NeoCTL(object):
while len(response_queue) == 0:
self.em.poll(0)
if not self.connected:
raise Exception, 'Connection closed'
raise NotReadyException, 'Connection closed'
response = response_queue.pop()
if response[0] == protocol.ERROR and \
response[1] == protocol.NOT_READY_CODE:
......
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