From 31cd8d1e5641f2f001a217f0cdc3f74e006e96e0 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sun, 10 Jan 2021 17:19:27 -0700 Subject: [PATCH] Fix items_not_found logic --- scripts/wk/kit/ufd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/wk/kit/ufd.py b/scripts/wk/kit/ufd.py index 483e2fbb..93d5b7ca 100644 --- a/scripts/wk/kit/ufd.py +++ b/scripts/wk/kit/ufd.py @@ -212,7 +212,8 @@ def copy_source(source, items, overwrite=False): linux.unmount('/mnt/Source') # Raise exception if item(s) were not found - raise FileNotFoundError('One or more items not found') + if items_not_found: + raise FileNotFoundError('One or more items not found') def create_table(dev_path, use_mbr=False):