fix(scripts): Avoid fails of contributor stats script if cleanup fails

environments/review-docs-pre-r-8dnton/deployments/17517
Georg Krause 2023-06-01 18:38:26 +02:00
rodzic 905567ae2e
commit 43b6b7255f
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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