From dfa536662f787cbdcb29861ed468048739f17424 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Fri, 26 Nov 2010 21:47:11 +0100 Subject: [PATCH] check if the instance is in unseen_ids before trying to remove it --- pyweb/mumble/management/server_detect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyweb/mumble/management/server_detect.py b/pyweb/mumble/management/server_detect.py index 4ca9020..e81fd21 100644 --- a/pyweb/mumble/management/server_detect.py +++ b/pyweb/mumble/management/server_detect.py @@ -112,7 +112,8 @@ def find_existing_instances( **kwargs ): meta.save() for id in servIDs: - unseen_ids.remove(id) + if id in unseen_ids: + unseen_ids.remove(id) if v > 1: print "Checking Murmur instance with id %d." % id # first check that the server has not yet been inserted into the DB