Permalink
Browse files

third time is a charm

  • Loading branch information...
1 parent 55db179 commit bc72d71df6f51b826eac30dba131c217ba6d238a @ricardokirkner ricardokirkner committed Jul 9, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 bots/borg.py
View
@@ -51,7 +51,10 @@ def messageReceived(self, message):
enemy.messageReceived(message)
except:
self.enemy = None
- del self.bots[enemy.name]
+ try:
+ del self.bots[enemy.name]
+ except:
+ pass
def set_enemy(self, message):
enemy = None

0 comments on commit bc72d71

Please sign in to comment.