diff options
| author | Laurent Bonnans <laurent.bonnans@here.com> | 2018-01-19 09:16:49 +0100 |
|---|---|---|
| committer | Laurent Bonnans <laurent.bonnans@here.com> | 2018-01-19 09:16:49 +0100 |
| commit | 44a4dd8e039ea16319f337c3881964759ada73a5 (patch) | |
| tree | fd5e7f53979329a1404ebba955c0759bb2075a42 | |
| parent | 84baa1c3d8f996f7daf2d8aa3d26197378218f21 (diff) | |
| download | meta-updater-44a4dd8e039ea16319f337c3881964759ada73a5.tar.gz | |
More general exception handler for `kvm-ok`
If the program is not in PATH, `FileNotFoundError` is raised
| -rw-r--r-- | scripts/qemucommand.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
| 73 | try: | 73 | try: |
| 74 | check_output(['kvm-ok']) | 74 | check_output(['kvm-ok']) |
| 75 | self.kvm = True | 75 | self.kvm = True |
| 76 | except CalledProcessError: | 76 | except Exception: |
| 77 | self.kvm = False | 77 | self.kvm = False |
| 78 | else: | 78 | else: |
| 79 | self.kvm = args.kvm | 79 | self.kvm = args.kvm |
