Skip FileNotFoundError in copy_source()
* Avoids crash when copying some WinPE ISOs
This commit is contained in:
parent
e07c019fb2
commit
050bef7f85
1 changed files with 5 additions and 1 deletions
|
|
@ -64,7 +64,11 @@ def copy_source(source, items, overwrite=False):
|
||||||
for i_source, i_dest in items:
|
for i_source, i_dest in items:
|
||||||
i_source = '/mnt/Source{}'.format(i_source)
|
i_source = '/mnt/Source{}'.format(i_source)
|
||||||
i_dest = '/mnt/UFD{}'.format(i_dest)
|
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')
|
unmount('/mnt/Source')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue