diff --git a/qubes/ext/gui.py b/qubes/ext/gui.py index 0899fa44..d5292969 100644 --- a/qubes/ext/gui.py +++ b/qubes/ext/gui.py @@ -21,8 +21,6 @@ # License along with this library; if not, see . # -import asyncio - import qubes.config import qubes.ext diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index 3419a0bd..fbe8d6c5 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -692,8 +692,8 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM): try: if self.is_running(): return self.libvirt_domain.ID() - else: - return -1 + + return -1 except libvirt.libvirtError as e: if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN: return -1