Skip to content

Commit

Permalink
FIx makepot failing if result not returned on git log command (#6391)
Browse files Browse the repository at this point in the history
  • Loading branch information
anaximeno authored Sep 9, 2024
1 parent f69902c commit b48b9cc
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 b48b9cc

Please sign in to comment.