Change in vdsm[master]: fix Exception message error in apiTests module

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Wed Jan 23 05:00:54 UTC 2013


ShaoHe Feng has uploaded a new change for review.

Change subject: fix Exception message error in apiTests module
......................................................................

fix Exception message error in apiTests module

Change-Id: Ic51b141047dc0490e50a050fd667f63d30f121f2
Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
---
M tests/apiTests.py
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/89/11289/1

diff --git a/tests/apiTests.py b/tests/apiTests.py
index 1c8699e..0ac3177 100644
--- a/tests/apiTests.py
+++ b/tests/apiTests.py
@@ -203,22 +203,22 @@
             try:
                 sock.connect((ip, port))
             except socket.error as e:
-                raise ConnectionError("Unable to connect to server: %s", e)
+                raise ConnectionError("Unable to connect to server: %s" % e)
             try:
                 sock.sendall(msg)
             except (socket.error, socket.timeout), e:
-                raise ProtocolError("Unable to send request: %s", e)
+                raise ProtocolError("Unable to send request: %s" % e)
             try:
                 data = sock.recv(JsonRawTest._Size.size)
             except socket.error as e:
-                raise ProtocolError("Unable to read response length: %s", e)
+                raise ProtocolError("Unable to read response length: %s" % e)
             if not data:
                 raise ProtocolError("No data received")
             msgLen = JsonRawTest._Size.unpack(data)[0]
             try:
                 data = sock.recv(msgLen)
             except socket.error as e:
-                raise ProtocolError("Unable to read response body: %s", e)
+                raise ProtocolError("Unable to read response body: %s" % e)
             if len(data) != msgLen:
                 raise ProtocolError("Response body length mismatch")
             return json.loads(data)


--
To view, visit http://gerrit.ovirt.org/11289
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic51b141047dc0490e50a050fd667f63d30f121f2
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: ShaoHe Feng <shaohef at linux.vnet.ibm.com>


More information about the vdsm-patches mailing list