fix "local variable 'e' is assigned to but never used"

This commit is contained in:
Hans-Christoph Steiner 2018-05-25 12:32:34 +02:00
parent 14127bf418
commit fb02073cab
3 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ config = {
if os.path.isfile('/usr/bin/systemd-detect-virt'):
try:
virt = subprocess.check_output('/usr/bin/systemd-detect-virt').strip().decode('utf-8')
except subprocess.CalledProcessError as e:
except subprocess.CalledProcessError:
virt = 'none'
if virt == 'qemu' or virt == 'kvm' or virt == 'bochs':
logger.info('Running in a VM guest, defaulting to QEMU/KVM via libvirt')