Skip to content

Commit

Permalink
Make Marian log parser more reliable (#989)
Browse files Browse the repository at this point in the history
  • Loading branch information
eu9ene authored Jan 14, 2025
1 parent e714bb7 commit 17a3f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracking/translations_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ def _join(seq):
if not seq:
return None
if isinstance(seq[0], str):
return "_".join(seq)
return _join([_join(item) for item in seq])
return "_".join([item for item in seq if item is not None])
return _join([_join(item) for item in seq if item is not None])

# Record logs depending on Marian headers
tag = None
Expand Down

0 comments on commit 17a3f41

Please sign in to comment.