Commit 9af23e72 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Cast exception instance to string before give it to protocolError().


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1153 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 7c42eaeb
......@@ -108,6 +108,7 @@ class EventHandler(object):
conn.answer(protocol.notReady('retry later'), packet.getId())
conn.abort()
except ProtocolError, message:
message = str(message)
conn.answer(protocol.protocolError(message), packet.getId())
conn.abort()
......
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