Commit 12f6294f authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

Add debugging information until the IndexError found in our demo log is fixed

parent 8007a682e2c1
......@@ -448,7 +448,17 @@ class SEDA2XSDExport(SEDA2ExportAdapter):
elif isinstance(occ, dict): # fake occurence introduced for some elements'content
# target element has already been introduced: it is now given as profile_element
target_element = profile_element
try:
extension_element = target_element[0][0][0]
except IndexError:
# XXX debugging information for traceback which occured on our demo
# should disappear at some point
descendants = []
while len(target_element) and len(descendants) < 3:
descendants.append(target_element[0])
target_element = target_element[0]
self.error('Unexpected target_element: %s', descendants)
raise
self.fill_element(xselement, target_element, extension_element,
target_value, card_entity)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment