From 137bbfaa4c0e2a95d93bee7722c37589a1031131 Mon Sep 17 00:00:00 2001 From: Ring Strategies <50960300+RingStrategies@users.noreply.github.com> Date: Thu, 26 Sep 2019 12:51:14 -0500 Subject: [PATCH] modify ws-example.py config: add 'verbose': True The config dict passed to the python WebsocketConnection constructor now requires a 'verbose' key. This commit adds the entry `'verbose': True` to the config dict that is passed to the WebsocketConnection constructor in the examples/py/ws-example.py file, eliminating a 'KeyError' exception that was being thrown by the call to ws.connect() in that file. --- examples/py/ws-example.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/py/ws-example.py b/examples/py/ws-example.py index 76fd62947677e..b774ff762421e 100644 --- a/examples/py/ws-example.py +++ b/examples/py/ws-example.py @@ -12,7 +12,8 @@ async def main(): ws = WebsocketConnection({ - 'url': 'wss://echo.websocket.org' + 'url': 'wss://echo.websocket.org', + 'verbose': True, }, 5 * 1000, loop) @ws.on('err')