We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecfcc0a commit 86b8f8cCopy full SHA for 86b8f8c
python/runtime.py
@@ -106,7 +106,7 @@ def on_message(self, message):
106
107
def send(self, protocol, command, payload):
108
"""Send a message to UI/client"""
109
- if 'secret' in payload:
+ if isinstance(payload, dict) and 'secret' in payload:
110
del payload['secret']
111
m = json.dumps({'protocol': protocol, 'command': command, 'payload': payload})
112
self.ws.send(m)
0 commit comments