mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-09 08:58:27 +03:00
baseclass: Fix traceback if skipping leak check
This commit is contained in:
parent
77063968c9
commit
28839cab4d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user