Skip to content

Commit

Permalink
catch the assert error
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Wambua <[email protected]>
  • Loading branch information
denniswambua committed Jan 24, 2017
1 parent f019f6a commit 777ea4b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion onadata/libs/utils/csv_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 777ea4b

Please sign in to comment.