From 6dbbec38f3794c9843a875ceca89d8336e95db92 Mon Sep 17 00:00:00 2001 From: Nicholas Wehr <33910651+wwwehr@users.noreply.github.com> Date: Sun, 17 Apr 2022 10:52:22 -0700 Subject: [PATCH 1/2] Update requirements.txt per https://github.com/watson-developer-cloud/python-sdk/issues/810 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 7df31b85..fcf965b5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ requests>=2.0,<3.0 python_dateutil>=2.5.3 -websocket-client==1.1.0 +websocket-client==1.3.0 ibm_cloud_sdk_core>=3.3.6, == 3.* From 6f8da90c302105c0970fa24ee1c08739b7ea1eba Mon Sep 17 00:00:00 2001 From: Nicholas Wehr <33910651+wwwehr@users.noreply.github.com> Date: Sun, 17 Apr 2022 11:56:17 -0700 Subject: [PATCH 2/2] Accept expected on_close signature --- ibm_watson/websocket/synthesize_listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibm_watson/websocket/synthesize_listener.py b/ibm_watson/websocket/synthesize_listener.py index dee6e28a..33caf81d 100644 --- a/ibm_watson/websocket/synthesize_listener.py +++ b/ibm_watson/websocket/synthesize_listener.py @@ -120,7 +120,7 @@ def on_error(self, ws, error): """ self.callback.on_error(error) - def on_close(self, ws, **kwargs): + def on_close(self, ws, *args, **kwargs): """ Callback executed when websocket connection is closed