refactor(WVD): Print error if path to parse doesn't exist

This commit is contained in:
rlaphoenix 2024-04-01 18:29:56 +01:00
parent 3659c81d6a
commit a053423d23
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,10 @@ def parse(path: Path) -> None:
log = logging.getLogger("wvd") log = logging.getLogger("wvd")
if not path.exists():
console.log(f"[bright_blue]{path.absolute()}[/] does not exist...")
return
device = Device.load(path) device = Device.load(path)
log.info(f"System ID: {device.system_id}") log.info(f"System ID: {device.system_id}")