Fix items_not_found logic

This commit is contained in:
2Shirt 2021-01-10 17:19:27 -07:00
parent ce912e9525
commit 31cd8d1e56
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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):