From 43b6b7255fa102dc970241b3eef5028f5302e02f Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Thu, 1 Jun 2023 18:38:26 +0200 Subject: [PATCH] fix(scripts): Avoid fails of contributor stats script if cleanup fails --- scripts/get-contributions-stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get-contributions-stats.py b/scripts/get-contributions-stats.py index 4f6324645..7d65badd7 100755 --- a/scripts/get-contributions-stats.py +++ b/scripts/get-contributions-stats.py @@ -70,11 +70,11 @@ def clear_list(inList): outList = list(dict.fromkeys(inList)) try: outList.remove("funkwhale-bot") - except IndexError: + except (IndexError, ValueError): pass try: outList.remove("weblate (bot)") - except IndexError: + except (IndexError, ValueError): pass outList.sort() return outList