fix(scripts): Avoid fails of contributor stats script if cleanup fails
This commit is contained in:
parent
905567ae2e
commit
43b6b7255f
|
@ -70,11 +70,11 @@ def clear_list(inList):
|
||||||
outList = list(dict.fromkeys(inList))
|
outList = list(dict.fromkeys(inList))
|
||||||
try:
|
try:
|
||||||
outList.remove("funkwhale-bot")
|
outList.remove("funkwhale-bot")
|
||||||
except IndexError:
|
except (IndexError, ValueError):
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
outList.remove("weblate (bot)")
|
outList.remove("weblate (bot)")
|
||||||
except IndexError:
|
except (IndexError, ValueError):
|
||||||
pass
|
pass
|
||||||
outList.sort()
|
outList.sort()
|
||||||
return outList
|
return outList
|
||||||
|
|
Loading…
Reference in New Issue