From 7e69eff7a83b9eb5f6f2ea20ac43c2cc538f3335 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Fri, 10 Jan 2020 18:07:02 -0700 Subject: [PATCH] Fixed wk.os.linux.mount_volumes() --- scripts/wk/os/linux.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/wk/os/linux.py b/scripts/wk/os/linux.py index 253b1dd0..a62013ca 100644 --- a/scripts/wk/os/linux.py +++ b/scripts/wk/os/linux.py @@ -138,9 +138,9 @@ def mount_volumes(device_path=None, read_write=False, scan_corestorage=False): # Attempt to mount volume if not already_mounted: - mount(vol.path, read_write=read_write) - proc = run_program(cmd, check=False) - if proc.returncode: + try: + mount(vol.path, read_write=read_write) + except RuntimeError: result += 'Failed to mount' report.append(std.color_string(result, 'RED')) continue