Make pylint happy
- Drop unused 'asyncio' - Drop useless 'else' after return
This commit is contained in:
parent
7506482d08
commit
43786e1478
@ -21,8 +21,6 @@
|
||||
# License along with this library; if not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
import asyncio
|
||||
|
||||
import qubes.config
|
||||
import qubes.ext
|
||||
|
||||
|
@ -692,7 +692,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
|
||||
try:
|
||||
if self.is_running():
|
||||
return self.libvirt_domain.ID()
|
||||
else:
|
||||
|
||||
return -1
|
||||
except libvirt.libvirtError as e:
|
||||
if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN:
|
||||
|
Loading…
Reference in New Issue
Block a user