Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions mrz/checker/_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ def identifier(self) -> bool:
self.report.add("only one identifier", level=Kind.WARNING)
ok = not self._compute_warnings
else:
self.report.add("more than two identifiers", level=Kind.ERROR)
ok = False
primary, secondary = id2iter[0], ' '.join(id2iter[1:]).replace('<', ' ').strip()
self.report.add("more than two identifiers", level=Kind.WARNING)
ok = not self._compute_warnings
else: # too many '<' in id
self.report.add("invalid identifier format", level=Kind.ERROR)
ok = False
Expand Down