Commit 2ffa605b authored by davebshow's avatar davebshow
Browse files

error if receive doesn't find termination condition

parent e18200f8
......@@ -231,6 +231,8 @@ class GremlinClientWebSocketResponse(BaseConnection, ClientWebSocketResponse):
self.parser.feed_data(msg.data.decode())
elif msg.tp == MsgType.text:
self.parser.feed_data(msg.data.strip())
else:
raise RuntimeError("Unknown message type.")
break
finally:
self._waiting = False
Supports Markdown
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