Skip FileNotFoundError in copy_source()

* Avoids crash when copying some WinPE ISOs
This commit is contained in:
2Shirt 2019-04-18 19:26:28 -07:00
parent e07c019fb2
commit 050bef7f85
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -64,7 +64,11 @@ def copy_source(source, items, overwrite=False):
for i_source, i_dest in items:
i_source = '/mnt/Source{}'.format(i_source)
i_dest = '/mnt/UFD{}'.format(i_dest)
recursive_copy(i_source, i_dest, overwrite=overwrite)
try:
recursive_copy(i_source, i_dest, overwrite=overwrite)
except FileNotFoundError:
# Going to assume (hope) that this is fine
pass
unmount('/mnt/Source')