From 00fb7a1f8c271e8e5bd38995008f41e8afa9b140 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Thu, 11 Nov 2010 20:06:51 +0100 Subject: [PATCH] check for address field existing before trying to del it --- pyweb/mumble/mmobjects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyweb/mumble/mmobjects.py b/pyweb/mumble/mmobjects.py index 6c30165..6b1c7fe 100644 --- a/pyweb/mumble/mmobjects.py +++ b/pyweb/mumble/mmobjects.py @@ -308,7 +308,7 @@ class mmPlayer( object ): if authed: if "ipaddress" in self.player_obj: pldata["x_addrstring"] = self.ipaddress - else: + elif "address" in pldata: del pldata["address"] if self.channel.server.hasUserTexture(self.userid):