File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 96
96
# Convert the RapidPro run objects to TracedData.
97
97
traced_runs = []
98
98
for run in runs :
99
+ if run .contact .uuid not in contact_runs :
100
+ # Sometimes contact uuids which appear in `runs` do not appear in `contact_runs`.
101
+ # I have only observed this happen for contacts which were created very recently.
102
+ # This test skips the run in this case; it should be included next time this script is executed.
103
+ print ("Warning: Run found with uuid '{}', but this id is not present in contacts" .format (run .contact .uuid ))
104
+ continue
105
+
99
106
contact_urns = contact_runs [run .contact .uuid ].urns
100
107
# assert len(contact_urns) == 1, "Contact has multiple URNs" TODO: Re-enable once AVF test runs are ignored.
101
108
run_dict = {"avf_phone_id" : phone_uuids .add_phone (contact_urns [0 ])}
You can’t perform that action at this time.
0 commit comments