Skip to content

Commit f2b9f88

Browse files
committed
[validation] Cleanup duplicate id messages
1 parent 3e74d48 commit f2b9f88

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

odml/validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def section_unique_ids(parent, id_map=None):
174174
yield i
175175

176176
if sec.id in id_map:
177-
yield ValidationError(sec, "Duplicate id in Section '%s' and '%s'" %
177+
yield ValidationError(sec, "Duplicate id in Section '%s' and %s" %
178178
(sec.get_path(), id_map[sec.id]))
179179
else:
180180
id_map[sec.id] = "Section '%s'" % sec.get_path()
@@ -203,7 +203,7 @@ def property_unique_ids(section, id_map=None):
203203

204204
for prop in section.properties:
205205
if prop.id in id_map:
206-
yield ValidationError(prop, "Duplicate id in Property '%s' and '%s'" %
206+
yield ValidationError(prop, "Duplicate id in Property '%s' and %s" %
207207
(prop.get_path(), id_map[prop.id]))
208208
else:
209209
id_map[prop.id] = "Property '%s'" % prop.get_path()

0 commit comments

Comments
 (0)