diff --git a/qubes/app.py b/qubes/app.py index 02bc84d61..c35256b8f 100644 --- a/qubes/app.py +++ b/qubes/app.py @@ -104,12 +104,13 @@ 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 attr return wrapper