mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
Pass on KeyError from deleting a non-existant game from the IMC2MudList.
This commit is contained in:
parent
31a78f9fb6
commit
d4f80a526e
1 changed files with 5 additions and 1 deletions
|
|
@ -38,7 +38,11 @@ class IMC2MudList(object):
|
|||
def remove_mud_from_packet(self, packet):
|
||||
# Removes a mud from the Mud list when given a packet.
|
||||
mud = IMC2Mud(packet)
|
||||
del self.mud_list[mud.name]
|
||||
try:
|
||||
del self.mud_list[mud.name]
|
||||
except KeyError:
|
||||
# No matching entry, no big deal.
|
||||
pass
|
||||
|
||||
# Use this instance to keep track of the other games on the network.
|
||||
IMC2_MUDLIST = IMC2MudList()
|
||||
Loading…
Add table
Add a link
Reference in a new issue