Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion obswebsocket/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,12 @@ def call(self, obj):
if self.legacy:
obj.input(r, r['status'] == 'ok')
else:
obj.input(r.get('responseData', {}), r['requestStatus']['result'])
# Include error reporting to client.
result = r['requestStatus']['result']
if result:
obj.input(r.get('responseData', {}), result)
else:
obj.input(r['requestStatus'], result)
return obj
raise exceptions.MessageTimeout("No answer for message {}".format(message_id))

Expand Down