Make pylint happy

- Drop unused 'asyncio'
- Drop useless 'else' after return
This commit is contained in:
Frédéric Pierret (fepitre) 2020-02-27 14:17:42 +01:00
parent 7506482d08
commit 43786e1478
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2
2 changed files with 2 additions and 4 deletions

View File

@ -21,8 +21,6 @@
# License along with this library; if not, see <https://www.gnu.org/licenses/>. # License along with this library; if not, see <https://www.gnu.org/licenses/>.
# #
import asyncio
import qubes.config import qubes.config
import qubes.ext import qubes.ext

View File

@ -692,8 +692,8 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
try: try:
if self.is_running(): if self.is_running():
return self.libvirt_domain.ID() return self.libvirt_domain.ID()
else:
return -1 return -1
except libvirt.libvirtError as e: except libvirt.libvirtError as e:
if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN: if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN:
return -1 return -1