Fix items_not_found logic
This commit is contained in:
parent
ce912e9525
commit
31cd8d1e56
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue