From f8bc58f3daba0c780fcb771bd4244d2f54e4ba3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 31 Aug 2018 09:10:33 +0200 Subject: [PATCH] ignore errors when feeding repositories --- eodb/events/management/commands/feed_repositories.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eodb/events/management/commands/feed_repositories.py b/eodb/events/management/commands/feed_repositories.py index 4b97cb0..c13be41 100644 --- a/eodb/events/management/commands/feed_repositories.py +++ b/eodb/events/management/commands/feed_repositories.py @@ -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)