Remove try/except that was suppressing errors, and fix issue where roles containing idlers were not enumerated. Closes #55
This commit is contained in:
parent
16b3f36eb3
commit
4815d242c8
@ -1022,10 +1022,9 @@ def stop_game(cli, winner = ""):
|
||||
if len(var.ORIGINAL_ROLES[role]) == 0 or role == var.DEFAULT_ROLE:
|
||||
continue
|
||||
playersinrole = copy.copy(var.ORIGINAL_ROLES[role])
|
||||
try:
|
||||
for i in range(0, len(playersinrole)):
|
||||
if playersinrole[i].startswith("(dced)"): # don't care about it here
|
||||
playersinrole[i] = plr[6:]
|
||||
playersinrole[i] = playersinrole[i][6:]
|
||||
if len(playersinrole) == 2:
|
||||
msg = "The {1} were \u0002{0[0]}\u0002 and \u0002{0[1]}\u0002."
|
||||
roles_msg.append(msg.format(playersinrole, var.plural(role)))
|
||||
@ -1038,8 +1037,6 @@ def stop_game(cli, winner = ""):
|
||||
roles_msg.append(msg.format(", ".join(nickslist),
|
||||
playersinrole[-1],
|
||||
var.plural(role)))
|
||||
except:
|
||||
pass
|
||||
cli.msg(chan, " ".join(roles_msg))
|
||||
|
||||
done = {}
|
||||
|
Loading…
Reference in New Issue
Block a user