diff --git a/qubes/app.py b/qubes/app.py index 02bc84d61..4031f8386 100644 --- a/qubes/app.py +++ b/qubes/app.py @@ -104,12 +104,14 @@ def __getattr__(self, attrname): @functools.wraps(attr) def wrapper(*args, **kwargs): try: - return attr(*args, **kwargs) + return getattr(self._vm, attrname)(*args, **kwargs) except libvirt.libvirtError: if self._reconnect_if_dead(): return getattr(self._vm, attrname)(*args, **kwargs) raise + del wrapper.__wrapped__ + del attr return wrapper