From a053423d2328601052b8acc9029df137d795bc3e Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 1 Apr 2024 18:29:56 +0100 Subject: [PATCH] refactor(WVD): Print error if path to parse doesn't exist --- devine/commands/wvd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devine/commands/wvd.py b/devine/commands/wvd.py index 2cddae0..793c814 100644 --- a/devine/commands/wvd.py +++ b/devine/commands/wvd.py @@ -84,6 +84,10 @@ def parse(path: Path) -> None: log = logging.getLogger("wvd") + if not path.exists(): + console.log(f"[bright_blue]{path.absolute()}[/] does not exist...") + return + device = Device.load(path) log.info(f"System ID: {device.system_id}")