| AttributeError | Python 2.3:
/usr/local/bin/python Mon Mar 21 17:14:22 2005 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/cpierog/public_html/qmafia/viewPlayer.cgi |
| 50 |
| 51 print '<b>Game Status</b>:' |
| 52 player.print_status() |
| 53 |
| 54 print '<b>Events</b>: ' |
| player = Player Someone, player.print_status = <bound method Player.print_status of Player Someone> |
| /home/cpierog/public_html/qmafia/player.py in print_status(self=Player Someone, record_index=None) |
| 335 # Either use current peon status or old peon status |
| 336 if record_index == None: |
| 337 peon_status = peon.get_status() |
| 338 else: |
| 339 rec = self.record.records[record_index] |
| peon_status undefined, peon = Peon SomeoneElse, peon.get_status = <bound method Peon.get_status of Peon SomeoneElse> |
| /home/cpierog/public_html/qmafia/player.py in get_status(self=Peon SomeoneElse) |
| 43 return 'Alive' |
| 44 elif self.is_undead(): |
| 45 return 'Undead (of %s)' % self.master.name |
| 46 else: |
| 47 raise ValueError, 'Peon %s has invalid status: %s' % \ |
| self = Peon SomeoneElse, self.master = None, self.master.name undefined |
AttributeError:
'NoneType' object has no attribute 'name'
args =
("'NoneType' object has no attribute 'name'",)