Debug
This commit is contained in:
parent
84394cb3b8
commit
50a721267a
@ -38,7 +38,13 @@ def sendmessage(target, message):
|
|||||||
|
|
||||||
for chatitem in response['resp']['chatItems']:
|
for chatitem in response['resp']['chatItems']:
|
||||||
statusdict = chatitem['chatItem']['meta']['itemStatus']
|
statusdict = chatitem['chatItem']['meta']['itemStatus']
|
||||||
|
try:
|
||||||
status = statusdict['sndProgress']
|
status = statusdict['sndProgress']
|
||||||
|
except KeyError:
|
||||||
|
print("FAILED")
|
||||||
|
pprint(statusdict)
|
||||||
|
status = 'FAILED'
|
||||||
|
else:
|
||||||
smessage = chatitem['chatItem']['meta']['itemText']
|
smessage = chatitem['chatItem']['meta']['itemText']
|
||||||
print("Message '%s' sent over websocket to %s, status was %s" % (smessage, target, status))
|
print("Message '%s' sent over websocket to %s, status was %s" % (smessage, target, status))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user