Skip to content

Commit

Permalink
Fix empty git log stdout (#1276)
Browse files Browse the repository at this point in the history
Co-authored-by: Anaxímeno Brito <[email protected]>
  • Loading branch information
rcalixte and anaximeno authored Sep 9, 2024
1 parent aac14e6 commit c2664a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cinnamon-spices-makepot
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ def make_pot(uuid: str) -> CapturedOutput:
'--date=format:%Y', '--reverse', '--no-merges',
str(folder)], capture_output=True, check=True,
text=True)
git_author, year = result.stdout.strip().splitlines()[0].split('|')
if result.stdout:
git_author, year = result.stdout.strip().splitlines()[0].split('|')
except subprocess.CalledProcessError:
pass

Expand Down

0 comments on commit c2664a1

Please sign in to comment.