Finish implementation and tests for the cheat system #3

Closed
m wants to merge 67 commits from cheat-refactor into master
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 4b07ad9065 - Show all commits

View File

@ -170,6 +170,9 @@ class Agora(object):
messages = self.agora.recent_messages() messages = self.agora.recent_messages()
if not messages["success"]: if not messages["success"]:
return False return False
if not "data" in messages["response"]:
self.log.error("Data not in messages response: {content}", content=messages["response"])
return False
open_tx = self.tx.get_ref_map().keys() open_tx = self.tx.get_ref_map().keys()
for message in messages["response"]["data"]["message_list"]: for message in messages["response"]["data"]["message_list"]:
contact_id = message["contact_id"] contact_id = message["contact_id"]