ignore errors when feeding repositories

This commit is contained in:
Frédéric Péters 2018-08-31 09:10:33 +02:00
parent fde8f61435
commit f8bc58f3da
1 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,10 @@ class Command(BaseCommand):
print module
try:
for line in subprocess.check_output(['git', 'log', '--format=format:%H👾%an👾%ae👾%aI👾%cI👾%s']).splitlines():
sha, author_name, author_email, author_date, commit_date, subject = line.strip().split('👾')
try:
sha, author_name, author_email, author_date, commit_date, subject = line.strip().split('👾')
except ValueError:
continue
if not author_email:
author_email = author_name + '@entrouvert.com'
author_email = author_map.get(author_email, author_email)