File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -319,19 +319,17 @@ def parse_sections(self, section_list):
319
319
320
320
try :
321
321
sec = odmlfmt .Section .create (** sec_attrs )
322
- except Exception as exc :
323
- msg = "Section not created (%s)\n %s" % (sec_attrs , str (exc ))
324
- self .error (msg )
325
- # If recovered in ignore_error mode, return empty list
326
- return odml_sections
327
322
328
- for prop in sec_props :
329
- sec .append (prop )
323
+ for prop in sec_props :
324
+ sec .append (prop )
330
325
331
- for child_sec in children_secs :
332
- sec .append (child_sec )
326
+ for child_sec in children_secs :
327
+ sec .append (child_sec )
333
328
334
- odml_sections .append (sec )
329
+ odml_sections .append (sec )
330
+ except Exception as exc :
331
+ msg = "Section not created (%s)\n %s" % (sec_attrs , str (exc ))
332
+ self .error (msg )
335
333
336
334
return odml_sections
337
335
You can’t perform that action at this time.
0 commit comments