From 777ea4bc8343002d6ceac6984558c5cec2d360ea Mon Sep 17 00:00:00 2001 From: Dennis Wambua Date: Tue, 24 Jan 2017 14:55:54 +0300 Subject: [PATCH] catch the assert error Signed-off-by: Dennis Wambua --- onadata/libs/utils/csv_builder.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/onadata/libs/utils/csv_builder.py b/onadata/libs/utils/csv_builder.py index 3d3880120e..d8c95932d2 100644 --- a/onadata/libs/utils/csv_builder.py +++ b/onadata/libs/utils/csv_builder.py @@ -366,7 +366,11 @@ def get_ordered_repeat_value(xpath, repeat_value): # this dict if type(item) is dict: # order repeat according to xform order - item = get_ordered_repeat_value(key, item) + try: + item = get_ordered_repeat_value(key, item) + except AssertionError: + pass + for nested_key, nested_val in item.iteritems(): # given the key "children/details" and nested_key/ # abbreviated xpath