Fix edge case with the who command and players with puppets at None locations. Resolves #1050.

This commit is contained in:
Griatch 2016-09-08 20:49:25 +02:00
parent dc32300092
commit e0e8e9453a

View file

@ -422,7 +422,7 @@ class CmdWho(COMMAND_DEFAULT_CLASS):
delta_conn = time.time() - session.conn_time
player = session.get_player()
puppet = session.get_puppet()
location = puppet.location.key if puppet else "None"
location = puppet.location.key if puppet and puppet.location else "None"
table.add_row([utils.crop(player.name, width=25),
utils.time_format(delta_conn, 0),
utils.time_format(delta_cmd, 1),