baseclass: Fix traceback if skipping leak check

This commit is contained in:
Cole Robinson 2011-07-22 19:12:31 -04:00
parent 77063968c9
commit 28839cab4d

View File

@ -217,7 +217,7 @@ class vmmGObject(GObject):
getattr(GObject, "__del__")(self)
try:
if self.config:
if self.config and self._leak_check:
self.config.remove_object(self.object_key)
except:
logging.exception("Error removing %s" % self.object_key)