Skip to content

Commit 6b183d2

Browse files
committed
If event type extract message
1 parent 58842a7 commit 6b183d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker_stuff/python_stuff/websocket_handler.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def __init__(self, response_data):
161161
"""
162162
self.event_type = response_data["event"]
163163
self.subscription_id = response_data["subscription_id"]
164+
self.message = ""
164165
try:
165166
self.results = json.loads(response_data["results_json"])
166167
except json.JSONDecodeError as json_error:
@@ -178,7 +179,7 @@ def __init__(self, response_data):
178179
self.event_type,
179180
self.subscription_id,
180181
self.results,
181-
response_data["message"]
182+
self.message
182183
)
183184
self.rate_limit_response: Tuple[str, Optional[str], str, Optional[str]] = (
184185
"OK",

0 commit comments

Comments
 (0)