Skip to content

Commit 03db458

Browse files
committed
[tools/dict_parser] Shorten warning msg texts
1 parent d1755a6 commit 03db458

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

odml/tools/dict_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def parse_sections(self, section_list):
320320
try:
321321
sec = odmlfmt.Section.create(**sec_attrs)
322322
except Exception as exc:
323-
msg = "Error trying to create Section (%s)\n%s" % (sec_attrs, str(exc))
323+
msg = "Section not created (%s)\n %s" % (sec_attrs, str(exc))
324324
self.error(msg)
325325
# If recovered in ignore_error mode, return empty list
326326
return odml_sections
@@ -364,7 +364,7 @@ def parse_properties(self, props_list):
364364
prop = odmlfmt.Property.create(**prop_attrs)
365365
odml_props.append(prop)
366366
except Exception as exc:
367-
msg = "Error trying to create Property (%s)\n%s" % (prop_attrs, str(exc))
367+
msg = "Property not created (%s)\n%s" % (prop_attrs, str(exc))
368368
self.error(msg)
369369

370370
return odml_props

0 commit comments

Comments
 (0)