From 44a4dd8e039ea16319f337c3881964759ada73a5 Mon Sep 17 00:00:00 2001 From: Laurent Bonnans Date: Fri, 19 Jan 2018 09:16:49 +0100 Subject: More general exception handler for `kvm-ok` If the program is not in PATH, `FileNotFoundError` is raised --- scripts/qemucommand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/qemucommand.py b/scripts/qemucommand.py index 7ae9381..6b1106d 100644 --- a/scripts/qemucommand.py +++ b/scripts/qemucommand.py @@ -73,7 +73,7 @@ class QemuCommand(object): try: check_output(['kvm-ok']) self.kvm = True - except CalledProcessError: + except Exception: self.kvm = False else: self.kvm = args.kvm -- cgit v1.2.3-54-g00ecf